private void InstantiateAction(StudentAction action)
    {
        if (action.Equals(StudentAction.NullAction))
        {
            return;
        }
        if (!action.HasObjectInput())
        {
            return;
        }

        //Debug.Log(action);

        XmlNodeList objects = action.InputXML.SelectNodes(Logger.OBJECT);

        if (objects.Count == 0)
        {
            return;
        }
        else
        {
            foreach (XmlNode node in objects)
            {
                GameObject gob = SpawnObject(node, action);
                if (gob != null)
                {
                    gob.GetComponent <ReplayBehavior>().ReplayTag = ReplayBehavior.RAETag.Action;
                    extender.SpecializeNewObject(gob, node, action);
                }
            }
        }
    }
    private void InstantiateAction(StudentAction action)
    {
        if (action.Equals(StudentAction.NullAction))
            return;
        if (!action.HasObjectInput())
            return;

        //Debug.Log(action);

        XmlNodeList objects = action.InputXML.SelectNodes(Logger.OBJECT);
        if (objects.Count == 0) {
            return;
        }
        else foreach (XmlNode node in objects) {
            GameObject gob = SpawnObject(node, action);
            if (gob != null) {
                gob.GetComponent<ReplayBehavior>().ReplayTag = ReplayBehavior.RAETag.Action;
                extender.SpecializeNewObject(gob, node, action);
            }
        }
    }