// Use this for initialization void Start() { twily_control = FindObjectOfType <TwilyControl>(); //Find an object with the currently active scene that has a "TwilyControl" script attached to it. AppleCountText.text = "Apples Harvested: " + appleCount; //Health System healthTwiCount = maxTwiHealth; //Twi's health should be set to max at beginning of game. //Respawn Array gameObjectsDefaultPos = FindObjectsOfType <ResetGameStuff>(); //Lives System twiCurrentLives = twiBeginLives; lifeTextBox.text = "Twi's Lives x " + twiCurrentLives; }
// Use this for initialization void Start() { instanceTwi = FindObjectOfType <TwilyControl>(); instanceCamera = FindObjectOfType <CameraAi>(); instanceCM = FindObjectOfType <SceneController>(); }