Exemple #1
0
        public void Revive()
        {
            ChangeHP(HP_Max);
            ChangeMP(MP_Max);
            NetworkRevive();

            var pos = NetworkUtil.GetStartPos();

            transform.position = pos;
            if (this.IsMine())
            {
                NetDateInterface.Revive();
            }
        }
Exemple #2
0
        /// <summary>
        /// 自己复活
        /// </summary>
        /// <returns></returns>
        public IEnumerator Revive()
        {
            GetComponent <BuffComponent>().RemoveAllBuff();
            ChangeHP(HP_Max);
            ChangeMP(MP_Max);
            this.SetNetSpeed(0);
            SetJob(Job.WARRIOR);
            var pos = NetworkUtil.GetStartPos();

            //transform.position = pos;
            //this.rigidbody.MovePosition(pos);
            Util.ForceResetPos(this.GetComponent <Rigidbody>(), pos);
            //StartCoroutine(SetRebornShader());

            ReviveAI();
            NetDateInterface.Revive();
            yield return(null);
        }