private void SetInstruction(ArcadeInstruction instruction) { if (instruction == currentInstruction) { return; } currentInstruction.SetActive(false); instruction.SetActive(true); currentInstruction = instruction; }
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; }
private void Start() { currentInstruction = attack; }