private void Start()
 {
     #region Component Initialization
     AiData    = GetComponent <AIData>();
     Behaviour = AiData.GetComponent <MonsterBehavior>();
     Checks    = AiData.GetComponent <MonsterChecks>();
     #endregion
 }
Exemplo n.º 2
0
 private void Start()
 {
     #region Initialize
     #region GetComponents
     AiData       = GetComponent <AIData>();
     Checks       = AiData.GetComponent <MonsterChecks>();
     AnimatorBody = GetComponent <Animator>();
     RigidBody    = GetComponent <Rigidbody2D>();
     controller   = GetComponent <MonsterController>();
     pathfinder   = GetComponent <Pathfinder>();
     flavor       = GetComponent <FlavorInputManager>();
     sfxPlayer    = GetComponent <PlaySFX>();
     #endregion
     ActionTimer         = -1f;
     ActionTimerReset    = 5f;
     ActionTimerVariance = 2f;
     ResetTimer          = -1f;
     ResetTimerReset     = 6f;
     ResetTimerVariance  = 2f;
     ResetMovementBias();
     #endregion
 }