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

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