Пример #1
0
        private void Start()
        {
            motionAnimControll    = this.GetComponentInChildren <MotionAnimControll>();
            guardControll         = this.GetComponent <GuardControll>();
            playerCancelProcesses = transform.GetComponentsInChildren <IPlayerCancelProcess>();

            rigid = this.GetComponent <Rigidbody>();
            motionAnimControll.ResponseStream.Subscribe(RecieveResponce);
            soundEffectControl = GetComponent <SoundEffectControl>();
        }
Пример #2
0
        protected virtual void Start()
        {
            rigid      = GetComponent <Rigidbody>();
            lookTarget = transform.Find("LookTarget");

            motionAnimControll = this.transform.GetComponentInChildren <MotionAnimControll>();

            motionAnimControll.ResponseStream
            .Where(n => this.IsActive)
            .Where(n => n == AnimResponce.JumpLaunch)
            .Subscribe(n => { Jump(); });
            movableAttacks = GetComponentsInChildren <IMovableAttack>();
        }
Пример #3
0
 private void Start()
 {
     motionAnimControll = transform.GetComponentInChildren <MotionAnimControll>();
 }