forfeiture, abandoning, entry_fee_collection at start
This commit is contained in:
@@ -58,6 +58,8 @@ public class GameCanvas : MonoBehaviour
|
||||
public float textEmoteDuration = 5f;
|
||||
public float emojiEmoteDuration = 5f;
|
||||
bool isShowingEmotes=> emotesPanel.gameObject.activeSelf;
|
||||
|
||||
public RectTransform kickWarning;
|
||||
|
||||
|
||||
|
||||
@@ -299,4 +301,17 @@ public class GameCanvas : MonoBehaviour
|
||||
timeoutForOpponentPanel.SetActive(false);
|
||||
}
|
||||
|
||||
|
||||
public void ShowKickWarning(){
|
||||
kickWarning.transform.localScale = new Vector3(0, 0, 0);
|
||||
kickWarning.transform.DOScale(1, 0.2f).SetEase(Ease.OutBack);
|
||||
kickWarning.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void HideKickWarning(){
|
||||
kickWarning.transform.DOScale(0, 0.2f).SetEase(Ease.InBack).OnComplete(() => {
|
||||
kickWarning.gameObject.SetActive(false);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user