Top Banner
Unity Lesson 2 : Basic Scripting Variables and Functions
12

Unity Lesson 2 : Variables and Functions

Mar 20, 2017

Download

Education

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
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