Created
June 23, 2014 01:02
-
-
Save nastajus/271a16968e577c1ca30c to your computer and use it in GitHub Desktop.
what differences are there between these?
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
public class PowerupTouch : MonoBehaviour { | |
void OnTriggerEnter(Collider other){ | |
GetComponent<MeshRenderer>().material.color = Color.green; | |
transform.renderer.material.color = Color.blue; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment