private void Start()
    {
        statManager = StatManager.instance;
        lootDrop    = GetComponent <LootDrop>();

        animController = GetComponent <AIAnimationController>();
    }
    // Start is called before the first frame update
    void Start()
    {
        OnStart();

        ai             = GetComponent <AI>();
        animController = GetComponent <AIAnimationController>();

        basicAttackTime = animController.GetActionDuration(AnimationActionType.BasicAttack);
    }
Beispiel #3
0
    /// <summary>
    /// Assignments and code called on start.
    /// </summary>
    public virtual void OnStart()
    {
        stats          = GetComponent <Stats>();
        anim           = GetComponent <Animator>();
        animController = GetComponent <AIAnimationController>();
        audioSource    = GetComponent <AudioSource>();

        state      = CreatureState.Idle;
        allegiance = CreatureAllegiance.Neutral;

        stats.currentMoveSpeed = stats.defaultMoveSpeed;
    }
Beispiel #4
0
 void Awake()
 {
     ai = GetComponent <AICharacter>();
     aiAnimationController = GetComponent <AIAnimationController>();
 }