public override void OnInspectorGUI()
    {
        script_playerProperties playerProperties = (script_playerProperties)target;

        EditorGUILayout.HelpBox("[PlayerProperties script] \nDescription: Controls all the assets associated with the character. \n- Assign the assets to the various variables below.", MessageType.Info);

        DrawDefaultInspector();

        //EditorGUILayout.Space();

        EditorGUILayout.LabelField("");
    }
Ejemplo n.º 2
0
    void Update()
    {
        CharacterController playerController = GetComponent <CharacterController>        ();
        AudioSource         playerAudio      = GetComponent <AudioSource>                        ();

        playerProps = GetComponent <script_playerProperties>();

        player_actions(ref playerController, ref playerAudio);

        script_playerMovement.player_acceleration_from_gravity(ref velocity, ref playerController);
        script_playerMovement.set_player_direction(ref velocity, ref moveDirection);

        playerController.Move(velocity * Time.deltaTime);
    }
Ejemplo n.º 3
0
 void Start()
 {
     playerProperties = player.GetComponent <script_playerProperties>();
     time             = GetComponent <script_gameTimer>();
 }