示例#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);
 }