Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
msDMDGames/Projects/MyGame/Assets/_Scripts/HelloWorld.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (25 sloc)
593 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | |
} | |
} |