示例#1
0
        protected override void Start()
        {
            _source = GetComponent<AudioSource>();
            _robot = GetComponent<Robot>();

            _robot.ReturnAction += _robot_ReturnAction;
            _robot.StoppageAction += _robot_StoppageAction;
            _robot.InvokeAction += _robot_InvokeAction;
        }
示例#2
0
 void Start()
 {
     _robot = GetComponent<Robot>();
     _transform = GetComponent<Transform>();
     GetComponent<SpriteRenderer>().sprite = ShassisSprite;
     _animator = GetComponent<Animator>();
     _animator.runtimeAnimatorController = AnimationStorage.instance.flyShassisAnimator;
     _sound = GetComponent<SoundPlayer>();
 }
示例#3
0
 void Start()
 {
     _transform = GetComponent<Transform>();
     _robot = GetComponent<Robot>();
     _sound = GetComponent<SoundPlayer>();
 }