Ejemplo n.º 1
0
    void OnTriggerEnter(Collider other)
    {
        if (other.transform.tag == "Player")
        {
            IsOnBooster = true;
            currentPad  = this;
        }

        Debug.Log("On Enter");
    }
Ejemplo n.º 2
0
    void OnTriggerExit(Collider other)
    {
        if (other.transform.tag == "Player")
        {
            IsOnBooster = false;
            currentPad  = null;
            gameObject.SetActive(false);
        }

        Debug.Log("On Exit");
    }
Ejemplo n.º 3
0
 public void Reset()
 {
     IsOnBooster = false;
     currentPad  = null;
     gameObject.SetActive(true);
 }