public void OpenCoreMenu() { if (!CoreOpen) { coreObj.alpha = 1; MatchTimeManager.FirstOpen(); SelectThis(player_Group); coreObj.interactable = true; coreObj.blocksRaycasts = true; CoreOpen = true; } else { coreObj.alpha = 0; MatchTimeManager.TotalTimeShow = false; coreObj.interactable = false; coreObj.blocksRaycasts = false; CoreOpen = false; if (selectSort != null) { selectSort.Color_select(false); selectSort = null; } myState = UpdateManager.Myability.None; } }
//閃避執行 private void Dodge_FCN() { canDodge = false; myCachedTransform.forward = arrow.forward; Net.RPC("GoDodge", PhotonTargets.All); MatchTimeManager.SetCountDownNoCancel(Dodge_End, playerData.Dodget_Delay); }
protected void OnEnable() { if (photonView.isMine) { MatchTimeManager.SetCountDown(DisappearThis, flyTime); } }
public void player_ReBorn(float _countDown) { if (dieCD_Obj.alpha == 0) { dieCD_Obj.alpha = 1; } MatchTimeManager.SetCountDown(ReBorn, _countDown, countDownText, null); }
//被攻擊時反應時間 protected void beAttackStop() { if (correctPos != null) { points.RemoveThisPoint(correctPos); } correctPos = myCachedTransform; MatchTimeManager.SetCountDown(waitToAtk, enemyData.beAtk_delay); }
void Death() { //被破壞特效(未寫)----------------- originalObj.enabled = false; destoryObj.enabled = true; deadManager.ifDead(true); MatchTimeManager.SetCountDownNoCancel(ReBorn, delayToReBorn); MatchTimeManager.ClearThisTask(modifyIndex); closeHpBar(); }
protected void CloseHP() { if (UI_HpObj.alpha != 1) { UI_HpObj.alpha = 1; modifyIndex = MatchTimeManager.SetCountDown(closeHpBar, HP_Time); } else { MatchTimeManager.ModifyTime(modifyIndex, HP_Time); } }
protected void CloseHP() { if (canvasGroup.alpha != 1) { canvasGroup.alpha = 1; modifyIndex = MatchTimeManager.SetCountDown(closeHpBar, 6); } else { MatchTimeManager.ModifyTime(modifyIndex, 6); } }
//殺死目標後延遲 protected void KillTargetDelay() { nowState = states.Null; if (!canAtking) { MatchTimeManager.SetCountDownNoCancel(GoNextAxtion, waitNextActionTime); if (!ani.GetBool(aniHashValue[1])) { Net.RPC("TP_stopAni", PhotonTargets.All, true); } } else { GoNextAxtion(); } }
protected override void GetDeBuff_Stun(float _time) { if (!deadManager.checkDead) { NowCC = true; StopAll(); ani.CrossFade(aniHashValue[4], 0.01f, 0); if (photonView.isMine) { if (correctPos != null) { points.RemoveThisPoint(correctPos); } } MatchTimeManager.SetCountDownNoCancel(Recover_Stun, _time); } }
///////////////////////////////////////蓋塔防相關 public void NeedToUpdate() { if (nowBuilding && haveTower) { if (nowSelect) { FindCorrectPos(); } if (!nowBuild) { if (Input.GetMouseButtonDown(1)) { print("取消建造"); cancelSelect(); _start = false; } if (_start && !nowSelect) { goBuild(); } } else { if ((Input.GetKeyDown(KeyCode.Escape)) || Input.GetMouseButtonDown(1) || playerScript.deadManager.checkDead) { nowBuild = false; if (cancelBuildIndex != 0) { MatchTimeManager.ClearThisTask(cancelBuildIndex); } cancelBuildIndex = 0; playerScript.switchScaffolding(false); cancelPunish(0.8f); closeScaffolding(); closeTurretToBuild(); playerScript.stopAnything_Switch(false); HintScript.CreatHint("中斷建造"); } } } }
public void GetDeBuff_Stun(float _time) { if (deadManager.noCC) { return; } if (!deadManager.checkDead) { if (photonView.isMine) { stopAnything_Switch(true); CancelNowSkill(); } NowCC = true; if (!AniControll.anim.GetBool(AniControll.aniHashValue[15])) { AniControll.anim.CrossFade(AniControll.aniHashValue[18], 0.02f, 0); AniControll.anim.SetBool(AniControll.aniHashValue[9], true); } MatchTimeManager.SetCountDownNoCancel(Recover_Stun, _time); } }
//每次攻擊間隔 protected void delayTimeToAtk() { MatchTimeManager.SetCountDownNoCancel(atkIsOk, enemyData.atk_delay); }
void DelayToBuild() { nowBuild = true; cancelBuildIndex = MatchTimeManager.SetCountDownReveres(BuildFinish, turretToBuild.turret_delayTime, build_CD_Bar); }