void Start() { theBox = GameObject.Find("TheBox"); boxScript = theBox.GetComponent <TheBox>(); obstract = GameObject.Find("Main"); obScript = obstract.GetComponent <RandomApae>(); apaeLaughterSound.Play(0); boxScript.isAlive(true); }
void Start() { obstract = GameObject.Find("Main"); obScript = obstract.GetComponent <RandomApae>(); mainPause = GameObject.Find("Main"); mainScript = mainPause.GetComponent <Main>(); starting = false; slidingLeft = false; slidingRight = false; spliting = false; splitBack = false; anim = mainSprite.GetComponent <Animator> (); boxLeft.GetComponent <Renderer>().enabled = false; boxRight.GetComponent <Renderer>().enabled = false; }