Esempio n. 1
0
    void Awake()
    {
        if (SceneController.Instance.WasReloaded)
        {
            Ship.Target.transform.position = Ship.EndPosition.position;
            Ship.EngineParticles.Stop();
            enabled = false;

            foreach (GameObject s in GameObject.FindGameObjectsWithTag("spawner"))
            {
                s.GetComponent <ObstaclesSpawner>()?.Activate();
            }

            return;
        }
        Item.Init();
        Player.Init();
    }