Skip to content

Commit

Permalink
(#21) Created CommerceEventGO class
Browse files Browse the repository at this point in the history
CommerceEventGO is the equivallent of RandomEventGO for the buy/sell
future panel.
  • Loading branch information
Clauvin committed May 5, 2017
1 parent 9ca634e commit 1576cde
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
28 changes: 28 additions & 0 deletions UnityProject/Assets/Scripts/CommerceEventGO.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CommerceEventGO : MonoBehaviour {

public void PressedOKEventButton()
{
//method runs when player hits 'OK' button on the Random Event Popup
//since Popup pauses the game, it needs to be unpaused
TimeManager.instance.unpauseGame();

//Destroy this Random Event Popup
Destroy(this.gameObject);

}


// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update () {

}
}
12 changes: 12 additions & 0 deletions UnityProject/Assets/Scripts/CommerceEventGO.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1576cde

Please sign in to comment.