Beispiel #1
0
    void Start()
    {
        InventoryController   = GameObject.Find("---InventoryController");
        TouchController       = GameObject.Find("---TouchController").GetComponent <TouchController>();
        AllMachines           = GameObject.Find("---ClothInMachineController").GetComponent <AllMachines>();
        FinalCameraController = GameObject.Find("Main Camera").GetComponent <FinalCameraController>();
        SubwayMovement        = GameObject.Find("---StationController").GetComponent <SubwayMovement>();
        LostAndFound          = GameObject.Find("Lost&Found_basket").GetComponent <LostAndFound>();
        SpriteLoader          = GameObject.Find("---SpriteLoader").GetComponent <SpriteLoader>();
        AdsController         = GameObject.Find("---AdsController").GetComponent <AdsController>();
        InventorySlotMgt      = GameObject.Find("---InventoryController").GetComponent <InventorySlotMgt>();
        //AudioManager = GameObject.Find("---AudioManager").GetComponent<AudioManager>();
        LevelManager = FinalCameraController.LevelManager;
        startPos     = transform.position;



//        selfButton.onClick.AddListener(AddClothToInventory);

        //currentSprite = GetComponent<SpriteRenderer>().sprite;

        myImage = GetComponent <Image>();



        startSprite = GetComponent <Image>().sprite;


        if (!FinalCameraController.isTutorial)
        {
            returnConfirmButton.gameObject.SetActive(false);
        }
    }
Beispiel #2
0
    void Start()
    {
        InventoryController = GameObject.Find("---InventoryController");
        InventorySlotMgt    = InventoryController.GetComponent <InventorySlotMgt>();

        FinalCameraController = GameObject.Find("Main Camera").GetComponent <FinalCameraController>();
        TouchController       = GameObject.Find("---TouchController").GetComponent <TouchController>();

        washerNum = GetComponentInParent <WasherController>().number;

//        selfButton.onClick.AddListener(AddClothToInventory);
    }
Beispiel #3
0
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("PERSISTENT:" + Application.persistentDataPath);
        if (!isTutorial)
        {
            setting.SetActive(false);
            instruction.SetActive(false);
        }
        //        myCameraState = CameraState.Subway;
        myAppState = AppState.Mainpage;

        CameraMovement = transform.gameObject.GetComponent <CameraMovement>();

        InstagramController  = GameObject.Find("---InstagramController").GetComponent <InstagramController>();
        RatingSys            = GameObject.Find("FloatingUI").GetComponent <RatingSystem>();
        inventorySlotMgt     = GameObject.Find("---InventoryController").GetComponent <InventorySlotMgt>();
        FishBossNotification = GameObject.Find("FishBossUI").GetComponent <FishBossNotification>();
        BagsController       = GameObject.Find("---BagsController").GetComponent <BagsController>();
        FishTextManager      = GameObject.Find("---FishTextManager").GetComponent <FishTextManager>();
        FishBossNotification.HideFish();


        fishTalk.SetActive(false);
        Hide(frontPage);
        Hide(TakePhoto);
        Posture.SetActive(false);



        fishTalkText = fishTalk.gameObject.GetComponentInChildren <TextMeshPro>();
        Hide(Inventory);
        Hide(fishShoutCG);

        ChapterOneEnd = false;

        alreadyClothUI = false;
    }