Exemplo n.º 1
0
 private void Awake()
 {
     moveable         = GetComponent <Moveable>();
     autoAttackSystem = GetComponent <AutoAttackSystem>();
     NPCbase          = GetComponent <NPCBase>();
     NPCbase.OnDead  += delegate { Destroy(this); };
 }
Exemplo n.º 2
0
 private void UpdateReferences()
 {
     assembleLayout = GetComponentInParent <AssembleLayout>();
     NPCinfo        = GetComponent <NPCBase>();
     attackSystem   = GetComponent <AutoAttackSystem>();
     center         = assembleLayout ? assembleLayout.GetAssemblyPoint() : transform;
 }
Exemplo n.º 3
0
 private void UpdateRefference()
 {
     NPCinfo          = GetComponent <NPCBase>();
     moveable         = GetComponent <Moveable>();
     assembleLayout   = GetComponentInParent <AssembleLayout>();
     autoAttackSystem = GetComponent <AutoAttackSystem>();
     aimBase          = GetComponent <AimBase>();
 }
Exemplo n.º 4
0
 //protected float animating = 0.0f;
 virtual protected void UpdateREF()
 {
     attackSystem = GetComponent <AutoAttackSystem>();
     NPCinfo      = GetComponent <NPCBase>();
     anim         = GetComponent <Animator>();
 }