Last active
April 24, 2020 16:25
-
-
Save lee2sman/58d6feca246a57560bc79aaf9c9f3af3 to your computer and use it in GitHub Desktop.
gabe unity starter
This file contains hidden or 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
GameObject g = GameObject.Find("face"); | |
GameObject h = GameObject.Find("face2"); | |
void OnCollisionEnter(Collision collision) { | |
if (collision.gameObject.tag == "switch") | |
{ | |
//turn animation component off | |
g.GetComponent<"Doodle Animator">().enabled= false; | |
h.GetComponent<"Static Face">().enabled= true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment