-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Ball : MonoBehaviour { | ||
|
||
// Use this for initialization | ||
void Start () { | ||
GetComponent<Rigidbody>().velocity = new Vector3(-8.0f, 8.0f, 0.0f); | ||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
|
||
} | ||
|
||
void OnBecameInvisible() | ||
{ | ||
Destroy(this.gameObject); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Launcher : MonoBehaviour { | ||
public GameObject ball; | ||
// Use this for initialization | ||
void Start () { | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
if (Input.GetMouseButtonUp(1)) | ||
{ | ||
Instantiate(ball); | ||
} | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using UnityEngine; | ||
|
||
public class Player : MonoBehaviour { | ||
|
||
private bool bIsLand = true; | ||
|
||
protected float jump_speed = 5.0f; | ||
// Use this for initialization | ||
void Start () { | ||
|
||
} | ||
|
||
// Update is called once per frame | ||
void Update () { | ||
if (Input.GetMouseButtonUp(0)) | ||
{ | ||
bIsLand = false; | ||
GetComponent<Rigidbody>().velocity = Vector3.up * jump_speed; | ||
} | ||
} | ||
|
||
void OnCollisionEnter(Collision collision) | ||
{ | ||
Debug.Log("rextest onCollisionEnter!!!" + collision.gameObject.tag); | ||
bIsLand = true; | ||
// Debug.Break(); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
5;0;6;0;0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sceneSetups: | ||
- path: Assets/Scenes/GameScene.unity | ||
isLoaded: 1 | ||
isActive: 1 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
unityRebuildLibraryVersion: 11 | ||
unityForwardCompatibleVersion: 40 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0000.5880b754.0000 | ||
0000.5880b76c.0000 |