public void AssociateGOToRobot(GameObject GO, Cellulo robot) { print("Associating GO " + GO.name + " to robot ID" + robot.getID()); CelluloIndexEntry myEntry = GetEntry(robot); myEntry.AssociatedGO = GO; }
public CelluloIndexEntry GetEntry(Cellulo robot) { CelluloIndexEntry EntryToReturn = CelluloInPool.Find(x => x.Id.Equals(robot.getID())); return(EntryToReturn); }
public CelluloIndexEntry() { Robot = new Cellulo(); Id = Robot.getID(); }