public override void OnInitialized() { _seeker = _owner.GetComponent <Seeker>(); _rigidbody2D = _owner.GetComponent <Rigidbody2D>(); _transform = _owner.transform; _eagleController = _owner as EnemyControllerEagle; }
public override void OnInitialized() { _transform = _owner.transform; _rigidbody = _owner.GetComponent <Rigidbody2D>(); _layerMask = LayerMask.GetMask(TagAndLayer.Layer.Player); _eagleController = _owner as EnemyControllerEagle; _waypointIndex = 1; //object start at index 0 _stoppingDistance = 0.025f; _waitTime = 3.0f; _calcWaitTime = 0.0f; _slowdownDistance = 0.8f; }
public override void OnInitialized() { _eagleController = _owner as EnemyControllerEagle; }