示例#1
0
    private GroupOfSwitchs NewGroup(int id)
    {
        GroupOfSwitchs group = new GroupOfSwitchs(id);

        listOfGroups.Add(group);
        return(group);
    }
示例#2
0
 public SwitchActions(GroupOfSwitchs group)
 {
     this.groupId = group.groupId;
     foreach (Switch switchi in group.GetSwitchs())
     {
         switchi.SetJobDone();
     }
 }
示例#3
0
 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();
     }
 }
示例#4
0
    public void Add(Switch switchi)
    {
        GroupOfSwitchs group = GetGroup(switchi.groupId);

        group.AddSwitch(switchi);
    }