예제 #1
0
    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);
    }
예제 #2
0
    // 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();
    }
예제 #3
0
파일: CopyBird.cs 프로젝트: Dziek/Cheep
    // 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);
    }