コード例 #1
0
 private void SetInstruction(ArcadeInstruction instruction)
 {
     if (instruction == currentInstruction)
     {
         return;
     }
     currentInstruction.SetActive(false);
     instruction.SetActive(true);
     currentInstruction = instruction;
 }
コード例 #2
0
 private void SetInstruction(ArcadeInstruction instruction)
 {
     if (instruction == currentInstruction)
     {
         return;
     }
     if (currentInstruction != blank)
     {
         currentInstruction.SetActive(false);
     }
     if (instruction != blank)
     {
         Debug.Log("Setting instruction to " + instruction.name);
         instruction.SetActive(true);
     }
     currentInstruction = instruction;
 }