private void MakeOnTouch() { int numberOfBoxes = PersonInfo.post; GlobalOptions.GetGuiLayer().AddMoney(numberOfBoxes * Random.Range(100, 300)); PersonInfo.AddPost(-PersonInfo.post); GlobalOptions.GetScreenLoader().LoadScreenByName("ScreenGameOver"); }
// Use this for initialization public override void OnHit(Collider other) { base.OnHit(other); GlobalOptions.GetPlayerScript().boostFx.Play(); PersonInfo.AddPost(1); GuiLayer.AddPostal(); PlayClipSound(); MakeInactive(); }