// Use this for initialization void Start() { player = GameObject.FindGameObjectWithTag ("Player"); Monsters = GameObject.FindGameObjectsWithTag ("Slime"); controller = GameObject.FindObjectOfType<teleportControl> (); }
//Completed status: //-1: init // 0: On Complete == null // 1: On complete != null // Use this for initialization void Start() { m_startPosition = transform.localPosition; m_from = m_startPosition; m_to = m_wipeOutPosition; m_lastLockedState = TransitionState.ON; SystemWipeRecognizerListener.Instance.SystemWipeUpdate += onWipeUpdate; TweenToOffPosition(); //---------------- Added by Danni ----------------------- blinker = GameObject.FindObjectOfType<BlinkQuad> (); teleportController = GameObject.FindObjectOfType<teleportControl> (); }
void Start() { StatusController = GameObject.FindObjectOfType<teleportControl> (); player = GameObject.FindGameObjectWithTag ("Player"); }