Ejemplo n.º 1
0
    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;
            }
        }
    }
Ejemplo n.º 2
0
 private void UnlockGeomancer(GeomancerIdentifier type)
 {
     for (int i = 0; i < _geomancers.Count; i++)
     {
         if (_geomancers[i].Type == type)
         {
             _geomancers[i].UnlockedStatus = true;
         }
     }
 }
Ejemplo n.º 3
0
    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);
    }
Ejemplo n.º 4
0
 public SerializedGeomancer(GeomancerIdentifier _geoType, bool _unlockStatus)
 {
     GeoType      = _geoType;
     UnlockStatus = _unlockStatus;
 }