Пример #1
0
 private void Start()
 {
     anim  = (Animator)blackboard.GetValue("animator");
     agent = (NavMeshAgent)blackboard.GetValue("navMeshAgent");
     eatAnimationLength = AnimatorUtilities.GetClipLength(anim, "Attack");
     globalBlackboard   = (GlobalBlackboard)blackboard.GetValue("globalBlackboard");
 }
Пример #2
0
 protected void Start()
 {
     anim  = (Animator)blackboard.GetValue("animator");
     agent = (NavMeshAgent)blackboard.GetValue("navMeshAgent");
     attackAnimationLength = AnimatorUtilities.GetClipLength(anim, "Attack");
     globalBlackboard      = (GlobalBlackboard)blackboard.GetValue("globalBlackboard");
     attackDamage          = (float)globalBlackboard.GetValue("attackDamage");
 }
Пример #3
0
 private void Start()
 {
     anim  = (Animator)blackboard.GetValue("animator");
     agent = (NavMeshAgent)blackboard.GetValue("navMeshAgent");
     attackAnimationLength = AnimatorUtilities.GetClipLength(anim, "Attack");
     objectPooler          = ObjectPooler.GetInstance();
     spiderWebsManagement  = (SpiderWebsManagement)SpiderGlobalBlackboard.Instance.GetValue("spiderWebsManagement");
     groundLayerMask       = LayerMask.GetMask("Ground");
 }