You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
720 B
31 lines
720 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
public class SkillWaterGunTest : MonoBehaviour { |
|
|
|
private WaterGunRotate rotate; |
|
private void Awake() |
|
{ |
|
rotate = gameObject.GetComponent<WaterGunRotate>(); |
|
} |
|
private void OnGUI() |
|
{ |
|
if (GUI.Button(new Rect(0, 0, 100, 50), "上")) |
|
{ |
|
rotate.Up(); |
|
} |
|
if (GUI.Button(new Rect(0, 50, 100, 50), "下")) |
|
{ |
|
rotate.Down(); |
|
} |
|
if (GUI.Button(new Rect(0, 100, 100, 50), "左")) |
|
{ |
|
rotate.Left(); |
|
} |
|
if (GUI.Button(new Rect(0, 150, 100, 50), "右")) |
|
{ |
|
rotate.Right(); |
|
} |
|
} |
|
}
|
|
|