private void Awake() { if (this.player == null) { Debug.LogError("Attach the Player GameObject to the Metagame component."); this.enabled = false; return; } if (this.playerSpawn == null) { playerSpawnPosition_ = this.player.transform.position; playerSpawnRotation_ = this.player.transform.rotation; } else { playerSpawnPosition_ = this.playerSpawn.position; playerSpawnRotation_ = this.playerSpawn.rotation; } if (this.enemies == null) { Debug.LogWarning("Attach a GameObject containing enemies to the Metagame component."); } if (this.items == null) { Debug.LogWarning("Attach a GameObject containing items to the Metagame component."); } heartbeat_ = this.player.GetComponent<Heartbeat>(); heartbeat_.SetMetagame(this); // Load the Blip object used for displaying pings on the radar. blip_ = Resources.Load("Blip") as GameObject; if (blip_ == null) { Debug.LogWarning("Couldn't load the Blip resource."); } }