Пример #1
0
 private void Update()
 {
     if (Input.GetKeyDown(KeyCode.P))
     {
         collector.Execute();
     }
 }
Пример #2
0
    private void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            if (collector.CollectorEnabled)
            {
                if (collector.HeldPowerups.Count > 0)
                {
                    PowerupColorDisplay.Clear();
                }
                collector.Execute();
            }
            else
            {
                singleCollector.Execute();
            }
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            Application.Quit();
        }
    }