public void TurnOff() { animator.Play("lampOff"); lampLight.enabled = false; for (int x = 0; x < Platforms.Length; x++) { MonsterPlatform platform = Platforms[x]; platform.SetCanBeRevealed(true); } }
public void TurnOn() { animator.Play("lampOn"); lampLight.enabled = true; for (int x = 0; x < Platforms.Length; x++) { MonsterPlatform platform = Platforms[x]; platform.SetCanBeRevealed(false); platform.Hide(); } }
// Use this for initialization void Start() { platform = GetComponentInParent <MonsterPlatform>(); }
// Use this for initialization void Start() { platform = GetComponentInParent<MonsterPlatform>(); }