Ejemplo n.º 1
0
    public ResourcePoint SpawnResource()
    {
        ConcernPoint r = null;

        while (r == null)
        {
            r = SpawnConcernPoint(_resourcePrefab.gameObject, "resource");
        }

        return((ResourcePoint)r);
    }
Ejemplo n.º 2
0
    public Disaster SpawnDisaster()
    {
        var        index  = GetIndexOfDisaster();
        GameObject prefab = _disasterTypePrefabs[index].gameObject;

        ConcernPoint d = null;

        while (d == null)
        {
            d = SpawnConcernPoint(prefab, "disaster");
        }

        return((Disaster)d);
    }
Ejemplo n.º 3
0
 public void RemoveConcernPoint(ConcernPoint cp)
 {
     _concernPoints.Remove(cp);
 }