public void Update() { if (laser.gameObject.activeSelf) { Move(); } timeAlive += Time.deltaTime; if (timeAlive >= gameManager.LaserLife) { laserManager.AddPoint(); DestroyInstance(); } }