// Use this for initialization
 void Start()
 {
     player = GameObject.FindGameObjectWithTag ("Player");
     Monsters = GameObject.FindGameObjectsWithTag ("Slime");
     controller = GameObject.FindObjectOfType<teleportControl> ();
 }
Example #2
0
    //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> ();
    }
Example #3
0
 void Start()
 {
     StatusController = GameObject.FindObjectOfType<teleportControl> ();
     player = GameObject.FindGameObjectWithTag ("Player");
 }