예제 #1
0
    public void UnlinkInstruction(GameObject instruction)
    {
        //Iterates backwards through array to avoid counter invalidation.
        BoundInstructions.RemoveAll(element => element == instruction);

        if (BoundInstructions.Count == 0)
        {
            GetComponent <CardUIControl>().Enable();
        }
    }
예제 #2
0
 public void LinkInstruction(GameObject instruction)
 {
     BoundInstructions.Add(instruction);
     GetComponent <UIControl>().Disable();
     StartCoroutine(WaitForUnlink());
 }