Exemplo n.º 1
0
    public float deadZone = 0.001f; // Changed from original code, exposed

    #endregion Fields

    #region Methods

    void Awake()
    {
        //CharacterController = GetComponent("CharacterController") as CharacterController; // Original code.
        CharacterController = GetComponent<CharacterController>();
        Instance = this;
        //P_Camera.UseExistingOrCreateNewMainCamera();
    }
 void Awake()
 {
     CharacterController = this.GetComponent<CharacterController>();
     S = this;
 }