private GroupOfSwitchs NewGroup(int id) { GroupOfSwitchs group = new GroupOfSwitchs(id); listOfGroups.Add(group); return(group); }
public SwitchActions(GroupOfSwitchs group) { this.groupId = group.groupId; foreach (Switch switchi in group.GetSwitchs()) { switchi.SetJobDone(); } }
public SwitchActions(GroupOfSwitchs group) { levelManager = FindObjectOfType <LevelManager> (); groupId = group.groupId; Debug.Log("Activated Group Of Switches " + groupId); foreach (Switch switchi in group.GetSwitchs()) { switchi.SetJobDone(); } }
public void Add(Switch switchi) { GroupOfSwitchs group = GetGroup(switchi.groupId); group.AddSwitch(switchi); }