Example #1
0
    protected EActionType PickActionType()
    {
        System.Array actionTypes = System.Enum.GetNames(typeof(EActionType));
        EActionType  actionType  = (EActionType)Random.Range(0, actionTypes.Length);

        if (actionType != currentAction.GetActionType())
        {
            return(actionType);
        }
        else
        {
            return(PickActionType());
        }
    }