Last active
February 9, 2018 03:22
-
-
Save cleak/b54adf735964e86f0d4cb70c3e007faf to your computer and use it in GitHub Desktop.
Simple example of a Unity component overriding its update method.
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 UnityEngine; | |
public class MyComponent : MonoBehaviour { | |
void Update() { | |
Debug.Log("Update was called"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment