Esempio n. 1
0
    void OnGUI()
    {
        if(GUILayout.Button("Next State"))
        {
            currentState += 1;

            Debug.Log(currentState);
        }

        if (GUILayout.Button("Spawn Blue"))
        {
            string teamColour = "BlueTroop";
            Vector3 position = new Vector3(0, 0, 0);
            Quaternion rotation = new Quaternion(0, 0, 0, 0);
            sT.TroopSpawn(teamColour, position, rotation);
        }

        if (GUILayout.Button("Spawn Red"))
        {
            string teamColour = "RedTroop";
            Vector3 position = new Vector3(0, 0, 0);
            Quaternion rotation = new Quaternion(0, 0, 0, 0);
            sT.TroopSpawn(teamColour, position, rotation);
        }
    }
Esempio n. 2
0
 void Start()
 {
     currentState = TurnStates.START;
 }