// Update is called once per frame void Update() { timer += Time.deltaTime; PlayGuid.color = new Color(PlayGuid.color.r, PlayGuid.color.g, PlayGuid.color.b, a); if (!Input.anyKey) { if (timer > 15) { a += 0.1f; } } else { a = 0; timer = 0; } if (targets == 0) { targets = 0; loader.Load(1); } if (m_isGameOver) { m_isGameOver = false; loader.Load(2); } }