예제 #1
0
 public void OnFundRaise()
 {
     Stats.singleton.money += 1000f;
     MessageLog.PushMessage("Your supporters are happy to contribute.");
     if (Stats.singleton.money > 10000f && !Stats.singleton.canHire)
     {
         Stats.singleton.canHire = true;
         MessageLog.PushMessage("That should be enough money to start hiring people.");
     }
     if (!Stats.singleton.hasHeardOffer && Stats.singleton.TimePct < 0.7f)
     {
         Stats.singleton.hasHeardOffer = true;
         DecisionPopup.ShowPopup("Puppy industries offers you $10000000 if you promise to vote to support their puppy killing ways", OnAccept, OnDecline);
     }
     if (Stats.singleton.money < 10000f && Stats.singleton.canHire)
     {
         Stats.singleton.hasHeardOffer = true;
         DecisionPopup.ShowPopup("It looks like you're running out of money.  Puppy industries could ensure you win this election if you help us out with some anti-puppy legislation.", OnAccept, OnDecline);
     }
 }
예제 #2
0
 void Start()
 {
     singleton = this;
     popup.SetActive(false);
 }
예제 #3
0
 void Start()
 {
     singleton = this;
     popup.SetActive(false);
 }