Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Script
Created the Hello World script from the OnCollision() video.
  • Loading branch information
mfs16101 committed Feb 4, 2020
1 parent 2c3bd36 commit b906ad1
Show file tree
Hide file tree
Showing 25 changed files with 878 additions and 2,389 deletions.
Binary file added Projects/MyGame/.vs/MyGame/v16/.suo
Binary file not shown.
Empty file.
Binary file not shown.
663 changes: 663 additions & 0 deletions Projects/MyGame/Assembly-CSharp.csproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Projects/MyGame/Assets/_Scenes/TestScene01.unity
Git LFS file not shown
8 changes: 8 additions & 0 deletions Projects/MyGame/Assets/_Scripts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions Projects/MyGame/Assets/_Scripts/HelloWorld.cs
@@ -0,0 +1,30 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HelloWorld : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log("Hello World (start)");
myCode();
}


// Update is called once per frame
void Update()
{
//Debug.Log("Update Me.");
}

private void OnCollisionEnter(Collision collision)
{
myCode();
}

void myCode() // myCode() Prints something to unity console
{
Debug.Log("My Function runs correctly");
}
}
11 changes: 11 additions & 0 deletions Projects/MyGame/Assets/_Scripts/HelloWorld.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b906ad1

Please sign in to comment.