Example #1
0
    public static void AddAction(PlayerAction pa)
    {
        if (NewPlayerActionUI.me == null)
        {
            NewPlayerActionUI.me = FindObjectOfType <NewPlayerActionUI> ();
        }

        if (NewPlayerActionUI.me.allActions == null)
        {
            NewPlayerActionUI.me.allActions = new List <PlayerAction> ();
        }

        if (NewPlayerActionUI.me.myActions == null)
        {
            NewPlayerActionUI.me.myActions = new List <PlayerAction> ();
        }

        NewPlayerActionUI.me.allActions.Add(pa);
    }
Example #2
0
 void OnEnable()
 {
     NewPlayerActionUI.AddAction(this);
 }
Example #3
0
 void Awake()
 {
     me = this;
 }