Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (_roleDate.isBeHiting || _roleDate.isDie)
        {
            //print("   被攻击后 停止!!!!!!  ");
            GetComponent <GameBody>().isAcing = false;
            if (_aiBase)
            {
                _aiBase.AIReSet();
            }
            AcOver();
            //ReSetAll();
            return;
        }


        if (isAcing)
        {
            if (GetComponent <AIBase>().IsTuihuiFangshouquing)
            {
                ReSetAll();
                return;
            }

            //重启
            if (GetComponent <AIBase>().IsChongqi)
            {
                AcOver();
            }
            //


            if (!isRunNear)
            {
                RunNear();
                return;
            }

            GetAtk();
        }
    }