Esempio n. 1
0
        //public NewPRNG(dynamic seed) : this((string)seed.ToString()) { }

        public NewPRNG(string seed)
        {
            this.seed = seed;
            mash      = new Masher();

            initState();
            hashString();
        }
Esempio n. 2
0
    public void Leave()
    {
        //check to see if it's the first move. If so, moving from abduction, decrement count
        if (currentBuilding == null && currentMasher == null && currentInfuser == null) //derp
        {
            gM.abductionChamberCount--;
        }

        if(currentBuilding != null){
            currentBuilding.GetComponent<Building>().RemoveHuman(gameObject);
            currentBuilding = null;
        }
        if(currentMasher != null){
            currentMasher.GetComponent<Masher>().RemoveHuman(gameObject);
            currentMasher = null;
        }
        if(currentInfuser != null){
            currentInfuser.GetComponent<Infuser>().RemoveHuman(gameObject);
            currentInfuser = null;
        }
    }
Esempio n. 3
0
 public void SetBuilding(Infuser i)
 {
     currentInfuser = i;
     currentBuilding = null;
     currentMasher = null;
 }
Esempio n. 4
0
 public void SetBuilding(Masher m)
 {
     currentMasher = m;
     currentBuilding = null;
     currentInfuser = null;
 }
Esempio n. 5
0
 public void SetBuilding(Building b)
 {
     currentBuilding = b;
     currentMasher = null;
     currentInfuser = null;
 }