コード例 #1
0
ファイル: MyCore.cs プロジェクト: Hengle/KaTaGy
 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;
     }
 }
コード例 #2
0
 //閃避執行
 private void Dodge_FCN()
 {
     canDodge = false;
     myCachedTransform.forward = arrow.forward;
     Net.RPC("GoDodge", PhotonTargets.All);
     MatchTimeManager.SetCountDownNoCancel(Dodge_End, playerData.Dodget_Delay);
 }
コード例 #3
0
 protected void OnEnable()
 {
     if (photonView.isMine)
     {
         MatchTimeManager.SetCountDown(DisappearThis, flyTime);
     }
 }
コード例 #4
0
    public void player_ReBorn(float _countDown)
    {
        if (dieCD_Obj.alpha == 0)
        {
            dieCD_Obj.alpha = 1;
        }

        MatchTimeManager.SetCountDown(ReBorn, _countDown, countDownText, null);
    }
コード例 #5
0
ファイル: EnemyControl.cs プロジェクト: Hengle/KaTaGy
    //被攻擊時反應時間
    protected void beAttackStop()
    {
        if (correctPos != null)
        {
            points.RemoveThisPoint(correctPos);
        }

        correctPos = myCachedTransform;
        MatchTimeManager.SetCountDown(waitToAtk, enemyData.beAtk_delay);
    }
コード例 #6
0
ファイル: OreObject.cs プロジェクト: Hengle/KaTaGy
 void Death()
 {
     //被破壞特效(未寫)-----------------
     originalObj.enabled = false;
     destoryObj.enabled  = true;
     deadManager.ifDead(true);
     MatchTimeManager.SetCountDownNoCancel(ReBorn, delayToReBorn);
     MatchTimeManager.ClearThisTask(modifyIndex);
     closeHpBar();
 }
コード例 #7
0
ファイル: EnemyControl.cs プロジェクト: Hengle/KaTaGy
 protected void CloseHP()
 {
     if (UI_HpObj.alpha != 1)
     {
         UI_HpObj.alpha = 1;
         modifyIndex    = MatchTimeManager.SetCountDown(closeHpBar, HP_Time);
     }
     else
     {
         MatchTimeManager.ModifyTime(modifyIndex, HP_Time);
     }
 }
コード例 #8
0
ファイル: OreObject.cs プロジェクト: Hengle/KaTaGy
 protected void CloseHP()
 {
     if (canvasGroup.alpha != 1)
     {
         canvasGroup.alpha = 1;
         modifyIndex       = MatchTimeManager.SetCountDown(closeHpBar, 6);
     }
     else
     {
         MatchTimeManager.ModifyTime(modifyIndex, 6);
     }
 }
コード例 #9
0
ファイル: EnemyControl.cs プロジェクト: Hengle/KaTaGy
    //殺死目標後延遲
    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();
        }
    }
コード例 #10
0
ファイル: SiegeSoldier.cs プロジェクト: Hengle/KaTaGy
    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);
        }
    }
コード例 #11
0
    ///////////////////////////////////////蓋塔防相關
    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("中斷建造");
                }
            }
        }
    }
コード例 #12
0
    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);
        }
    }
コード例 #13
0
ファイル: EnemyControl.cs プロジェクト: Hengle/KaTaGy
 //每次攻擊間隔
 protected void delayTimeToAtk()
 {
     MatchTimeManager.SetCountDownNoCancel(atkIsOk, enemyData.atk_delay);
 }
コード例 #14
0
 void DelayToBuild()
 {
     nowBuild         = true;
     cancelBuildIndex = MatchTimeManager.SetCountDownReveres(BuildFinish, turretToBuild.turret_delayTime, build_CD_Bar);
 }