// 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");
    }
Esempio n. 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");
    }
Esempio n. 3
0
 void Awake()
 {
     // Get a reference to the d-pad
     dpad = gameObject.GetComponent<DynamicDpad>();
 }
Esempio n. 4
0
    private DynamicDpad dpad;           // The dynamic d-pad


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