Example #1
0
 public void Relive()
 {
     Protect();
     CacheModel.gameObject.SetActive(true);
     InitEntity(Occupation, HeroId);
     UpdateModelScale();
     //CalculateScore();
     ArpgAnimatContorller.Reset();
     EndCurrentStateToOtherState(StateID.Idle);
     CreateHUDName();
 }
Example #2
0
 //初始化主角
 void InitCharactor(GameObject go)
 {
     if (null == go)
     {
         return;
     }
     RoleModel               = go.transform;
     RoleModel.parent        = CacheModel;
     RoleModel.localScale    = Vector3.one;
     RoleModel.localPosition = Vector3.zero;
     RoleModel.localRotation = Quaternion.identity;
     ArpgAnimatContorller.Init(RoleModel);
     GameMgr.Instance.CameraController.SetTarget(CacheModel);
 }
Example #3
0
 //初始化主角
 void InitCharactor(GameObject go)
 {
     if (null == go)
     {
         return;
     }
     //if(!go.activeSelf)
     //{
     //    go.SetActive(true);
     //}
     RoleModel               = go.transform;
     RoleModel.parent        = CacheModel;
     RoleModel.localScale    = Vector3.one;
     RoleModel.localPosition = Vector3.zero;
     RoleModel.localRotation = Quaternion.identity;
     ArpgAnimatContorller    = CacheModel.GetComponent <ARPGAnimatorController>();
     ArpgAnimatContorller.Init(RoleModel);
 }
Example #4
0
 public void EnterIdle()
 {
     ArpgAnimatContorller.Reset();
 }