void Start() { Resources.UnloadUnusedAssets(); FinalCameraController = GameObject.Find("Main Camera").GetComponent <FinalCameraController>(); SubwayMovement = GameObject.Find("---StationController").GetComponent <SubwayMovement>(); RatingSystem = GameObject.Find("FloatingUI").GetComponent <RatingSystem>(); FishBossNotification = GameObject.Find("FishBossUI").GetComponent <FishBossNotification>(); PathFollower = MapCar.GetComponent <PathFollower>(); carCG = MapCar.GetComponent <CanvasGroup>(); int skipInstruction = PlayerPrefs.GetInt("skip", -1); if (skipInstruction == 1) { skip = true; } GameObject.Find("Main Camera").transform.position = new Vector3(0, 0, -20); if (!skip) { } else { //FinalCameraController.myCameraState = FinalCameraController.CameraState.Subway; //ShowRatingSys(false); //CloseInstruction(); EndMapTutorial(); } comicList.Add(new List <Sprite>()); comicList[0].AddRange(comics1); comicList.Add(new List <Sprite>()); comicList[1].AddRange(comics2); }
// 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; }