Exemple #1
0
    void OnCollisionEnter2D(Collision2D coll)
    {
        Powers.Reset();
        Destroy(this.gameObject);

        if (coll.gameObject.tag == "Player")
        {
            Debug.Log("Bounce Power");
            Powers.BounceActivated = true;
        }
    }
Exemple #2
0
 void OnLevelWasLoaded()
 {
     ObstacleSpawn.force = 1.0f;
     Powers.Reset();
 }
Exemple #3
0
 void Awake()
 {
     Powers.Reset();
 }