Ejemplo n.º 1
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;
        }
    }
Ejemplo n.º 2
0
 public void CollectFromScrolledOverBuilding()
 {
     if(scrolledOverBuilding != null){
         money += scrolledOverBuilding.CollectMoney();
     }
     if(scrolledOverInfuser != null){
         infuserPanel.SetActive(true);
         infuserPanel.transform.position = Input.mousePosition;
         stupidNeededInfuser = scrolledOverInfuser;
     }
     if(scrolledOverMasher != null){
         scrolledOverMasher.Mash();
     }
 }
Ejemplo n.º 3
0
 public void SetBuilding(Infuser i)
 {
     currentInfuser = i;
     currentBuilding = null;
     currentMasher = null;
 }
Ejemplo n.º 4
0
 public void SetBuilding(Masher m)
 {
     currentMasher = m;
     currentBuilding = null;
     currentInfuser = null;
 }
Ejemplo n.º 5
0
 public void SetBuilding(Building b)
 {
     currentBuilding = b;
     currentMasher = null;
     currentInfuser = null;
 }