Пример #1
0
 void Start()
 {
     m_runnerStatus     = GetComponent <RunnerStatus>();
     m_runnerInput      = GetComponent <RunnerInput>();
     m_runnerMove       = GetComponent <RunnerMove>();
     m_runnerController = GetComponent <RunnerController>();
     m_uIController     = GameObject.Find("UIController").GetComponent <UIController>();;
     m_runnerAnimator   = GetComponent <PlayerAnimator>();
     m_playerNum        = m_runnerController.m_playerNum;
 }
Пример #2
0
 void Awake()
 {
     m_rigidBody      = GetComponent <Rigidbody>();
     m_runnerInput    = GetComponent <RunnerInput>();
     m_runnerMove     = GetComponent <RunnerMove>();
     m_runnerStatus   = GetComponent <RunnerStatus>();
     m_runnerSkill    = GetComponent <RunnerSkill>();
     m_rigidBody      = GetComponent <Rigidbody>();
     m_runnerAnimator = GetComponent <PlayerAnimator>();
     //初期ステータス
     m_runnerStatus.firstSpeed = 2;
     m_runnerStatus.maxSpeed   = 3;
     m_runnerStatus.health     = 5;
     m_runnerStatus.maxHealth  = 5;
     m_runnerStatus.isState    = true;
     m_runnerStatus.ishave     = false;
     m_runnerStatus.animator   = GetComponent <Animator>();
     if (ChaserFlag == false)
     {
         m_runnerStatus.animator.runtimeAnimatorController = Resources.Load <RuntimeAnimatorController>("Runner");
     }
 }