示例#1
0
    void TheOver()
    {
        //关闭激光

        Jiguang.GetComponent <Skill_JiguangSaoshe>().JiguangStop();
        Jiguang.gameObject.SetActive(false);
        TheResetAll();
        ReSetAll();
        TheSkillOver();
    }
示例#2
0
    void StartJN()
    {
        if (Jiguang == null)
        {
            return;
        }

        if (!IsYinxianOver)
        {
            //显示 激光引导线
            //显示 发射 特效

            Jiguang.GetComponent <Skill_JiguangSaoshe>().JiguangYinxianStart();
            QishihongYinxianNums += Time.deltaTime;
            //print("  QishihongYinxianNums  "+ QishihongYinxianNums);
            if (QishihongYinxianNums >= QishiHongYinxianTimes)
            {
                IsYinxianOver = true;
                IsStartSaoshe = true;
                //关闭激光引导线 打开激光
                Jiguang.GetComponent <Skill_JiguangSaoshe>().JiguangYinxianStop();
                Jiguang.GetComponent <Skill_JiguangSaoshe>().JiguangStart();
            }
        }



        if (IsStartSaoshe)
        {
            //if (Jiguang == null)
            //{
            //    TheOver();
            //    return;
            //}
            Jiguang.transform.localEulerAngles = new Vector3(0, 0, _QishiJiaodu);
            if (IsStartFromRight)
            {
                print("从右边开始!!!!!!    _QishiJiaodu  " + _QishiJiaodu + "   ****OverSaosheJD   " + OverSaosheJD);
                _QishiJiaodu -= JiaoduSpeed;
                if (_QishiJiaodu <= OverSaosheJD)
                {
                    TheOver();
                }
            }
            else
            {
                print("**************从左边开始!!!!!_QishiJiaodu!     " + _QishiJiaodu + "   ****OverSaosheJD   " + OverSaosheJD);
                _QishiJiaodu += JiaoduSpeed;
                if (_QishiJiaodu >= OverSaosheJD)
                {
                    TheOver();
                }
            }
        }
    }