Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class SelectText : MonoBehaviour {
- public enum TextOptions { sword, axe, wand };
- public TextOptions weapons;
- //0 Type1
- //1 Type2
- //2 wand
- // Update is called once per frame
- void Update () {
- Debug.Log (weapons.ToString ());
- //weapons = TextOptions.axe;
- //weapons = 0;
- switch (weapons) {
- case TextOptions.axe:
- Debug.Log ("axe axe");
- break;
- /*
- case 0:
- Debug.Log ("swod sord");
- break;
- */
- }
- if ((int)weapons > 1) {
- Debug.Log ("wand is > 1");
- }
- }
- }
Add Comment
Please, Sign In to add comment