Ejemplo n.º 1
0
    //public GameObject playerPlanet;

    //Asteroid _asteroid;

    void Start()
    {
        currentScore = minScore = 0;
        var go = GameObject.Find("GAME FIELD");

        _playerPlanets = go.GetComponent <PlayerPlanets>();
    }
Ejemplo n.º 2
0
 public PlayerPlanet GetPlayerPlanet(int planetId) => PlayerPlanets.First(p => p.Id == planetId);