private bool everyOtherUpdate = true; //part of updating every other frame for lighter load and less flashing void Start() { tCtrl = this.GetComponent <tController>(); p1 = GameObject.Find("p1"); p2 = GameObject.Find("p2"); p3 = GameObject.Find("p3"); p4 = GameObject.Find("p4"); }
void Start() { anim = this.transform.parent.GetComponentInChildren <Animator>(); tCon = this.transform.parent.GetComponentInChildren <tController>(); }