unity lesson 2 : variables and functions

12
Unity Lesson 2 : Basic Scripting Variables and Functions

Upload: suttipong-kullawattana

Post on 20-Mar-2017

25 views

Category:

Education


1 download

TRANSCRIPT

Page 1: Unity Lesson 2 : Variables and Functions

Unity Lesson 2 : Basic Scripting

Variables and Functions

Page 2: Unity Lesson 2 : Variables and Functions

Create Variable Function

Page 3: Unity Lesson 2 : Variables and Functions

GameObject > Create Empty > TestScript

Page 4: Unity Lesson 2 : Variables and Functions

Drag and Drop Script to GameObject > TestScriptby press play button

Page 5: Unity Lesson 2 : Variables and Functions

Test Script Success

Page 6: Unity Lesson 2 : Variables and Functions

Test Script Success

Page 7: Unity Lesson 2 : Variables and Functions

Test Script Success

= 55*2 = 110

Page 8: Unity Lesson 2 : Variables and Functions
Page 9: Unity Lesson 2 : Variables and Functions
Page 10: Unity Lesson 2 : Variables and Functions
Page 11: Unity Lesson 2 : Variables and Functions
Page 12: Unity Lesson 2 : Variables and Functions