protected override void Start() { _source = GetComponent<AudioSource>(); _robot = GetComponent<Robot>(); _robot.ReturnAction += _robot_ReturnAction; _robot.StoppageAction += _robot_StoppageAction; _robot.InvokeAction += _robot_InvokeAction; }
void Start() { _robot = GetComponent<Robot>(); _transform = GetComponent<Transform>(); GetComponent<SpriteRenderer>().sprite = ShassisSprite; _animator = GetComponent<Animator>(); _animator.runtimeAnimatorController = AnimationStorage.instance.flyShassisAnimator; _sound = GetComponent<SoundPlayer>(); }
void Start() { _transform = GetComponent<Transform>(); _robot = GetComponent<Robot>(); _sound = GetComponent<SoundPlayer>(); }