public void AddAction(ActionLib type, float time, int exp) { if (ActionQueue == null) { ActionQueue = new ARQueue <ARAction>(); } if (ActionQueue.Count >= 7) { Debug.Log("Current action queue is full"); return; } ARAction action = new ARAction(); action.InitAction(type, time, exp); TestButtons.Instance.AddActionItem(action, OnActionFinish); ActionQueue.EnQueue(action); }
public void InitAction(ActionLib type, float time, int exp) { this.ActionType = type; this.ActionTime = time; this.ExpBenefit = exp; }