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); }
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); }