Example #1
0
    protected void Awake()
    {
        playerActionQueue = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerActionQueue>();
        waitingNpcs       = new Queue <NpcActionQueue>();
        trigger           = GetComponent <StationTrigger>();

        UnlockStation();
    }
Example #2
0
    // Use this for initialization
    void Awake()
    {
        GameObject player = GameObject.Find("Player");

        playerQueue = player.GetComponent <PlayerActionQueue>();
    }