示例#1
0
 void Start()
 {
     input             = GetComponent <InputHandler>();
     animator          = GetComponent <Animator> ();
     animationSwitcher = new AnimationSwitcher();
     animationSwitcher.Init(animator);
 }
示例#2
0
    private void Start()
    {
        _playersGottenOut = new List <GameObject>();

        _animationSwitcher = GetComponent <AnimationSwitcher>();
        _playerStats       = GetComponent <PlayerStats>();
    }
示例#3
0
    protected override void Start()
    {
        base.Start();

        _holdingState      = GetComponent <PlayerHoldingState>();
        _animationSwitcher = GetComponent <AnimationSwitcher>();
        _gameOverlay       = GetComponent <GameOverlay>();
    }
示例#4
0
 void Start()
 {
     _ai           = GetComponent <NavMeshAgent>();
     _anim         = GetComponent <Animator>();
     _animSwitcher = GetComponent <AnimationSwitcher>();
     _behaviorTree = GetComponent <BehaviorTree>();
     _anim.SetFloat("IdleType", Random.value);
     _anim.SetFloat("Offset", Random.value);
 }
示例#5
0
    protected override void Start()
    {
        base.Start();

        _holdingState      = this.GetComponent <PlayerHoldingState>();
        _animationSwitcher = GetComponent <AnimationSwitcher>();
        _audioController   = GetComponent <AudioController>();
        _playerOverlay     = this.GetComponent <GameOverlay>();
    }
示例#6
0
文件: Jump.cs 项目: DarkXieon/Leriche
    protected override void Start()
    {
        base.Start();

        //jump = new Vector3(0.0f, 2.0f, 0.0f); // set jump height value here

        _playerFrozenState = GetComponent <PlayerFrozenState>();
        _animationSwitcher = GetComponent <AnimationSwitcher>();
    }
示例#7
0
    protected override void Start()
    {
        base.Start();

        timeLeft = movementTimeLimit;   // Set the time that the user has to move to the movementTimeLimit

        _holdingState      = GetComponent <PlayerHoldingState>();
        _frozenState       = GetComponent <PlayerFrozenState>();
        _animationSwitcher = GetComponent <AnimationSwitcher>();
        _audioController   = GetComponent <AudioController>();
        _gameOverlay       = GetComponent <GameOverlay>();

        _holdingState.MaxRunWithBallTime = movementTimeLimit;
    }