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