public void startProduction()
    {
        currency  = GameObject.Find("Currency").GetComponent <PlayerCurrency>();
        hours     = GameObject.Find("VisitorHandler").GetComponent <VisitorHandler>();
        parkStats = GameObject.Find("ParkHandler").GetComponent <Park>();

        incomeSprite = this.transform.GetChild(0).gameObject;

        cam        = GameObject.Find("MainCamera").GetComponent <Camera>();
        shopPlaced = true;
    }
    // Start is called before the first frame update
    void Start()
    {
        mMap    = GameObject.Find("Environment").GetComponent <Environment>();
        handler = GameObject.Find("VisitorHandler").GetComponent <VisitorHandler>();

        this.setCharacterType(2);

        //Call the move function after 5 seconds after spawning
        Invoke("moveVisitor", 5);

        //Get the paths avaliable
        paths = handler.getPaths();
    }
示例#3
0
        // Dependency injection uses this constructor to instantiate MainDialog
        public MainDialog(VisitorRegistrationRecognizer luisRecognizer, RegisterVisitorDialog registerVisitorDialog, VisitorPictureDialog visitorPictureDialog, VisitorHandler visitorHandler, ILogger <MainDialog> logger)
            : base(nameof(MainDialog))
        {
            _luisRecognizer = luisRecognizer;
            _visitorHandler = visitorHandler;
            Logger          = logger;

            AddDialog(new TextPrompt(nameof(TextPrompt)));
            AddDialog(registerVisitorDialog);
            AddDialog(visitorPictureDialog);
            AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[]
            {
                IntroStepAsync,
                ActStepAsync,
                RetrievePictureStepAsync,
                FinalStepAsync,
            }));

            // The initial child Dialog to run.
            InitialDialogId = nameof(WaterfallDialog);
        }
示例#4
0
    void Start()
    {
        mRaycastHits = new RaycastHit[NumberOfRaycastHits];
        mMap         = GetComponentInChildren <Environment>();
        Character.setCharacterType(1);

        //Setting up gameobjects
        paddockProfile = GameObject.Find("PaddockStats");
        actionSprite   = GameObject.Find("Sprite");
        profile        = GameObject.Find("DogStats");
        deletionScreen = GameObject.Find("PaddockDeletion");

        //Setting up gameobjects with the appropriate scripts
        paddockHandle = GameObject.Find("PaddockHandler").GetComponent <PaddockHandler>();
        dog           = GameObject.Find("DogHandler").GetComponent <DogHandler>();
        environment   = GameObject.Find("Environment").GetComponent <Environment>();
        cam           = GameObject.Find("MainCamera").GetComponent <CameraScript>();
        currency      = GameObject.Find("Currency").GetComponent <PlayerCurrency>();
        park          = GameObject.Find("ParkHandler").GetComponent <Park>();
        vis           = GameObject.Find("VisitorHandler").GetComponent <VisitorHandler>();
        decorations   = GameObject.Find("Decoration").GetComponent <Decorations>();
        events        = GameObject.Find("Event").GetComponent <Events>();
        level         = GameObject.Find("Levelling").GetComponent <LevelExp>();

        //Set up the paddock colour - darker green than the tiles
        paddockColor = new Color32(60, 107, 62, 1);
        actionSprite.SetActive(false);

        //Three seperate colours for grass - used for when deleting paths
        grassColours.Add(new Color32(98, 214, 164, 1));
        grassColours.Add(new Color32(122, 221, 159, 1));
        grassColours.Add(new Color32(105, 229, 140, 1));

        pauseScreen.SetActive(false);
        tutorialScreen.SetActive(false);
        deletionScreen.SetActive(false);

        ShowMenu(true);
    }