private bool interruptReset; // makes sure players stop interrupting before any further action is taken // TODO: Might move to parent class void Start() { // InvokeRepeating("WaitForPlayerToPause", 10, 1); // TODO: The 10 second wait for invoke will change to be a 10 second wait to introduce this section InvokeRepeating("WaitForPlayerToPause", 0, 1); // FT! otherBirdGO = GameObject.Instantiate(otherBirdGO); computerBirdScript = otherBirdGO.GetComponent <ComputerBirdScript>(); computerBirdScript.SetCurrentGameSection(this); playerBirdScript.SetCurrentGameSection(this); }
// private bool interruptReset; // makes sure players stop interrupting before any further action is taken // TODO: Might move to parent class // Use this for initialization void Start() { // otherBirdGO = GameObject.Instantiate(otherBirdGO); computerBirdScript = otherBirdGO.GetComponent <ComputerBirdScript>(); computerBirdScript.SetCurrentGameSection(this); playerBirdScript.SetCurrentGameSection(this); Invoke("Blather", 0); playerBirdScript.Stun(); }
// Use this for initialization void Start() { // otherBirdGO = GameObject.Instantiate(otherBirdGO); computerBirdScript = otherBirdGO.GetComponent <ComputerBirdScript>(); computerBirdScript.SetCurrentGameSection(this); playerBirdScript.SetCurrentGameSection(this); // CallOut(); // Invoke("CallOut", Random.Range(1, 4)); // InvokeRepeating("WaitForReply", 0, 0.5f); InvokeRepeating("WaitForFirstCheep", 0, 0.5f); }