Skip to content

Commit 65c668e

Browse files
committed
First Commit
First Commit
1 parent f2c5ce8 commit 65c668e

File tree

128 files changed

+74183
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+74183
-0
lines changed

Mastering Unity Scripting/Mastering Unity Scripting/Assets/playWithGameObject.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mastering Unity Scripting/Mastering Unity Scripting/Assets/playWithGameObject/UseDeltaTime.meta

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
//UseDeltaTime
2+
3+
using UnityEngine;
4+
using System.Collections;
5+
6+
public class UseDeltaTime : MonoBehaviour
7+
{
8+
//--------------------------------变量定义部分---------------------------------
9+
10+
//Speed of cube || 方块的速度
11+
public float cubeSpeed = 2.0f;
12+
13+
14+
//-----------------------------------------【Start()函数】---------------------------------------------
15+
// 说明:此函数仅在Update函数第一次被调用前被调用,常用于进行数据的初始化
16+
//--------------------------------------------------------------------------------------------------------
17+
void Start ()
18+
{
19+
20+
}
21+
22+
//-----------------------------------------【Update()函数】----------------------------------------
23+
// 说明:此函数在每一帧中都会被调用
24+
//------------------------------------------------------------------------------------------------------
25+
void Update ()
26+
{
27+
//Move cube along forward direction by speed || 使方块的位置随时间变化
28+
transform.localPosition += transform.forward * cubeSpeed * Time.deltaTime;
29+
}
30+
31+
}

Mastering Unity Scripting/Mastering Unity Scripting/Assets/playWithGameObject/UseDeltaTime/UseDeltaTime.cs.meta

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mastering Unity Scripting/Mastering Unity Scripting/Assets/playWithGameObject/UseDeltaTime/UseDeltaTime.unity.meta

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5;0;-1
Binary file not shown.
Binary file not shown.

Mastering Unity Scripting/Mastering Unity Scripting/Library/BuildPlayer.prefs

Whitespace-only changes.
Binary file not shown.
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
unityRebuildLibraryVersion: 11
2+
unityForwardCompatibleVersion: 40
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
0000.56004218.0000
2+
0000.56004234.0000
Binary file not shown.
Binary file not shown.

Mastering Unity Scripting/Mastering Unity Scripting/Library/UnityAssemblies/Mono.Cecil.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Mastering Unity Scripting/Mastering Unity Scripting/Library/UnityAssemblies/UnityEditor.iOS.Extensions.Xcode.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)