Esempio n. 1
0
    public void GateOpen()
    {
        if (tweener != null)
        {
            tweener.Kill();
        }
        tweener           = imgGate.DOLocalMoveY(3.7f, 0.7f).SetEase(Ease.InExpo);
        characterWaveHand = _currentCharacter.gameObject.MMGetComponentNoAlloc <CharacterWaveHand>();
        if (characterWaveHand != null)
        {
            characterWaveHand.OpenedGate();
        }

        StickmanManager.Instance.OpenedGate(OderPlayerType);
    }
Esempio n. 2
0
    public void GateClose()
    {
        if (tweener != null)
        {
            tweener.Kill();
        }
        tweener = imgGate.DOLocalMoveY(0f, 0.7f).SetEase(Ease.OutBounce);
        if (characterWaveHand != null)
        {
            characterWaveHand.ClosedGate();
            characterWaveHand = null;
        }

        StickmanManager.Instance.ClosedGate(OderPlayerType);
    }