Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- /// <summary>
- /// routes the mobile input to the correct methods in the PlayerCtrl script
- /// </summary>
- ///
- public class MobileUICtrl : MonoBehaviour
- {
- public GameObject player;
- PlayerCtrl playerCtrl;
- // Use this for initialization
- void Start()
- {
- playerCtrl = player.GetComponent<PlayerCtrl>();
- }
- public void mobileMoveLeft()
- {
- playerCtrl.MobileMoveLeft();
- }
- public void mobileMoveright()
- {
- playerCtrl.MobileMoveRight();
- }
- public void MobileStop()
- {
- playerCtrl.MobileStop();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement