Example #1
0
 public Teams GetTeam()
 {
     if (myRegister == null)
     {
         myRegister = GetComponent <ActorTeamRegister>();
     }
     return(myRegister.GetMyTeam());
 }
 void Awake()
 {
     aggroTrigger      = GetComponent <SphereCollider>();
     controllableActor = GetComponent <ControllableActor>();
     animState         = GetComponent <AnimationState>();
     damageState       = GetComponent <ContinuousDamageController>();
     myRegister        = GetComponent <ActorTeamRegister>();
     myTrans           = transform;
     status            = GetComponent <Status>();
     status.OnDamage  += SwitchTargetOnDamage;
     status.OnHPZero  += HPZeroCallback;
 }
Example #3
0
 protected virtual void Awake()
 {
     myRegister = GetComponent <ActorTeamRegister>();
 }