Esempio n. 1
0
    // Update is called once per frame
    void Update()
    {
        if (GameManager.gameEnd)
        {
            return;
        }

        // Destroy after one full rotation
        if (orbiter.getRotationTotal() > 360 * 2 && !isDestroyed)
        {
            destroySelf();
        }
    }