public void ToggleMenu() { ToggleActive(Menu); ToggleActive(MenuCursor); Message.SetActive(false); MessageCursor.SetActive(false); OptionA.SetActive(false); OptionB.SetActive(false); AricomonSpawner asp = AricomonSpawner.GetComponent(typeof(AricomonSpawner)) as AricomonSpawner; if (PlayerScript.speed == 0) { PlayerScript.speed = 5; asp.OpenMenu = false; } else { PlayerScript.speed = 0; asp.OpenMenu = true; } }
void Start() { MessageCursorRenderer = MessageCursor.GetComponent <SpriteRenderer>(); PlayerScript = Player.GetComponent <PlayerMover>(); }