// Methods
    //--------
    /// <summary>
    /// Use this for initialization
    /// </summary>
    void Start()
    {
        // Get a reference to the d-pad
        dpad = gameObject.GetComponent<DynamicDpad>();

        controller = gameObject.GetComponent<CharacterController>();

        PlayAnimation("idle");
    }
Beispiel #2
0
    private bool isMoving = false;                      // Indicates if the character is moving


    // Methods
    //--------

    /// <summary>
    /// Use this for initialization
    /// </summary>
    void Start()
    {
        // Get a reference to the d-pad
        dpad = gameObject.GetComponent <DynamicDpad>();

        controller = gameObject.GetComponent <CharacterController>();

        PlayAnimation("idle");
    }
Beispiel #3
0
 void Awake()
 {
     // Get a reference to the d-pad
     dpad = gameObject.GetComponent<DynamicDpad>();
 }
Beispiel #4
0
    private DynamicDpad dpad;           // The dynamic d-pad


    void Awake()
    {
        // Get a reference to the d-pad
        dpad = gameObject.GetComponent <DynamicDpad>();
    }