public IEnumerator buildMetropolisCoroutine(MetropolisType metropolisType)
    {
        this.transform.localScale = Vector3.zero;
        yield return(StartCoroutine(EventTransferManager.instance.ClientUpgradeCity(PhotonNetwork.player.ID - 1, (int)metropolisType)));

        this.transform.localScale = scale;
        this.gameObject.SetActive(false);
    }
Esempio n. 2
0
 public GameObject GetMetropolisOfType(MetropolisType metropolisType)
 {
     if (!metropolisPrefabsDictionary.ContainsKey(metropolisType))
     {
         return(null);
     }
     return(metropolisPrefabsDictionary [metropolisType]);
 }