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); } }
void Awake() { HybridInput.Register(this); Label.enabled = ShowLabel; Label.text = ButtonName; }