private void Start()
    {
        if (StaticGroundedManager._inst != null)
        {
            iGrounded = StaticGroundedManager._inst;
        }

        if (ComboManager._inst != null)
        {
            iCombo = ComboManager._inst;
        }
    }
 void Awake()
 {
     // Confirm singleton instance is active
     if (_inst == null)
     {
         _inst = this;
         // DontDestroyOnLoad(this);
     }
     else if (_inst != this)
     {
         GameObject.Destroy(this.gameObject);
     }
 }
예제 #3
0
    void Start()
    {
        if (iManager == null && InputManager._inst != null)
        {
            iManager = InputManager._inst;
        }

        if (iGrounded == null && StaticGroundedManager._inst != null)
        {
            iGrounded = StaticGroundedManager._inst;
        }

        currJumpCount = _ps.NumJumps;
    }
예제 #4
0
    void Start()
    {
        if (iGrounded == null && StaticGroundedManager._inst != null)
        {
            iGrounded = StaticGroundedManager._inst;
        }

        if (iCombo == null && ComboManager._inst != null)
        {
            iCombo = ComboManager._inst;
        }

        // camToShake = Camera.main.GetComponent<Shaker>();
        currDashCount = _ps.NumDashes;
    }