Пример #1
0
    void Awake()
    {
        if (HorizontalAxisName != null && HorizontalAxisName.Length > 0)
        {
            HorizontalAxis = new TouchAxis(HorizontalAxisName);
            HybridInput.Register(HorizontalAxis);
        }

        if (VerticalAxisName != null && VerticalAxisName.Length > 0)
        {
            VerticalAxis = new TouchAxis(VerticalAxisName);
            HybridInput.Register(VerticalAxis);
        }
    }
Пример #2
0
 void Awake()
 {
     HybridInput.Register(this);
     Label.enabled = ShowLabel;
     Label.text    = ButtonName;
 }