private void AssignInfoToGeomancersGO() { for (int i = 0; i < _geomancers.Count; i++) { GeomancerIdentifier type = _geomancers[i].Type; switch (type) { case GeomancerIdentifier.Sphalerite: Sphalerite.GetComponent <GeomancerHolder>().info = _geomancers[i]; break; case GeomancerIdentifier.Chalcopyrite: Chalcopyrite.GetComponent <GeomancerHolder>().info = _geomancers[i]; break; case GeomancerIdentifier.Pyrite: Pyrite.GetComponent <GeomancerHolder>().info = _geomancers[i]; break; case GeomancerIdentifier.Mother: Mother.GetComponent <GeomancerHolder>().info = _geomancers[i]; break; default: break; } } }
private void UnlockGeomancer(GeomancerIdentifier type) { for (int i = 0; i < _geomancers.Count; i++) { if (_geomancers[i].Type == type) { _geomancers[i].UnlockedStatus = true; } } }
public GameObject GetGeomancer(GeomancerIdentifier type) { switch (type) { case GeomancerIdentifier.Sphalerite: return(Sphalerite); case GeomancerIdentifier.Chalcopyrite: return(Chalcopyrite); case GeomancerIdentifier.Pyrite: return(Pyrite); case GeomancerIdentifier.Mother: return(Mother); default: break; } return(null); }
public SerializedGeomancer(GeomancerIdentifier _geoType, bool _unlockStatus) { GeoType = _geoType; UnlockStatus = _unlockStatus; }