//------------------------------------------------------------------------------------------------- // public methods //------------------------------------------------------------------------------------------------- public void populate(Entity ent) { //populate the info for the Entity string text = ""; //EntityAction ent_act = (EntityAction)ent; EntityAction ent_act = ent as EntityAction; if (!ent_act) { text = "No Actions"; } else { text = ent_act.printActions(); } mText.text = text; }