Example #1
0
    void OnTriggerEnter2D(Collider2D coll)
    {
        if (SwitchOnClick)
        {
            return;
        }

        SwitchLevel.SwitchToLevel(coll.gameObject, LevelToSwitchTo);
    }
Example #2
0
 private void OnDestroy()
 {
     Instance = null;
 }
Example #3
0
 private void Awake()
 {
     Instance = this;
 }