void Start() { redBlueBotton = GameObject.Find("RedBotton"); rBB = redBlueBotton.GetComponent <RedBlueBotton>(); player = GameObject.Find("Player"); playerCon = player.GetComponent <PlayerController>(); }
void Start() { redBlueBotton = GameObject.Find("RedBotton"); rBB = redBlueBotton.GetComponent <RedBlueBotton>(); oldRedBlue = !rBB.redBlue; meshrenderer = this.GetComponent <MeshRenderer>(); color = meshrenderer.material.color; collider = this.GetComponent <Collider>(); }