private void OnEnable() { this.destroyGORef = new Stack <GameObject>(); this.planetChunks = new PlanetChunks[6]; this.lastPlayerStats = new PlayerLastStats(Vector3.one, 0f, 0, "null"); this.generate(); StartCoroutine(PlanetGenerationLoop()); }
private void onPlayerSeeChunk(object[] obj) { this.lastPlayerStats = new PlayerLastStats((Vector3)obj[0], (float)obj[1], (int)obj[2], (string)obj[3]); }