예제 #1
0
파일: Stuned.cs 프로젝트: Amazasv/TowerGame
 private void Awake()
 {
     moveable         = GetComponent <Moveable>();
     autoAttackSystem = GetComponent <AutoAttackSystem>();
     NPCbase          = GetComponent <NPCBase>();
     NPCbase.OnDead  += delegate { Destroy(this); };
 }
예제 #2
0
 private void UpdateReferences()
 {
     assembleLayout = GetComponentInParent <AssembleLayout>();
     NPCinfo        = GetComponent <NPCBase>();
     attackSystem   = GetComponent <AutoAttackSystem>();
     center         = assembleLayout ? assembleLayout.GetAssemblyPoint() : transform;
 }
예제 #3
0
 private void UpdateRefference()
 {
     NPCinfo          = GetComponent <NPCBase>();
     moveable         = GetComponent <Moveable>();
     assembleLayout   = GetComponentInParent <AssembleLayout>();
     autoAttackSystem = GetComponent <AutoAttackSystem>();
     aimBase          = GetComponent <AimBase>();
 }
예제 #4
0
 //protected float animating = 0.0f;
 virtual protected void UpdateREF()
 {
     attackSystem = GetComponent <AutoAttackSystem>();
     NPCinfo      = GetComponent <NPCBase>();
     anim         = GetComponent <Animator>();
 }