Beispiel #1
0
 void Start()
 {
     controller   = GetComponent <CharacterController>();
     acrobatMotor = GetComponent <AcrobatMotor>();
     //playerMotor = GetComponent<PlayerMotor>();
     hangingMotor  = GetComponent <HangingMotor>();
     climbingMotor = GetComponent <ClimbingMotor>();
     HeadHitRadius = controller.radius * 0.85f;
 }
        private void Start()
        {
            player = GameManager.Instance.PlayerEntity;

            acrobatMotor  = GetComponent <AcrobatMotor>();
            controller    = GetComponent <CharacterController>();
            speedChanger  = GetComponent <PlayerSpeedChanger>();
            groundMotor   = GetComponent <PlayerGroundMotor>();
            climbingMotor = GetComponent <ClimbingMotor>();
            playerScanner = GetComponent <PlayerMoveScanner>();
            hangingMotor  = GetComponent <HangingMotor>();
        }
 void Start()
 {
     player      = GameManager.Instance.PlayerEntity;
     playerMotor = GetComponent <PlayerMotor>();
     //groundMotor = GetComponent<PlayerGroundMotor>();
     levitateMotor   = GetComponent <LevitateMotor>();
     controller      = GetComponent <CharacterController>();
     playerEnterExit = GetComponent <PlayerEnterExit>();
     acrobatMotor    = GetComponent <AcrobatMotor>();
     speedChanger    = GetComponent <PlayerSpeedChanger>();
     rappelMotor     = GetComponent <RappelMotor>();
     hangingMotor    = GetComponent <HangingMotor>();
     moveScanner     = GetComponent <PlayerMoveScanner>();
 }
        void Start()
        {
            controller      = GetComponent <CharacterController>();
            speedChanger    = GetComponent <PlayerSpeedChanger>();
            speed           = speedChanger.GetBaseSpeed();
            groundMotor     = GetComponent <PlayerGroundMotor>();
            climbingMotor   = GetComponent <ClimbingMotor>();
            heightChanger   = GetComponent <PlayerHeightChanger>();
            levitateMotor   = GetComponent <LevitateMotor>();
            frictionMotor   = GetComponent <FrictionMotor>();
            acrobatMotor    = GetComponent <AcrobatMotor>();
            playerScanner   = GetComponent <PlayerMoveScanner>();
            playerEnterExit = GameManager.Instance.PlayerEnterExit;
            rappelMotor     = GetComponent <RappelMotor>();
            hangingMotor    = GetComponent <HangingMotor>();

            // Allow for resetting specific player state on new game or when game starts loading
            SaveLoadManager.OnStartLoad  += SaveLoadManager_OnStartLoad;
            StartGameBehaviour.OnNewGame += StartGameBehaviour_OnNewGame;
        }