void Start() { clothBag.SetActive(false);//不然会显示在地铁外面 //Set Camera position and size in stage 3 TutorialCameraController = GameObject.Find("Main Camera").GetComponent <TutorialCameraController>(); MainCamera = GameObject.Find("Main Camera"); AudioManager = GameObject.Find("---AudioManager").GetComponent <AudioManager>(); //step1 stepCounter = 0; bagClick = 0; myMachineState = MachineState.Empty; workInventory = Resources.Load <Sprite>("Images/Karara/Cloth/Inventory/work"); workSubway = Resources.Load <Sprite>("Images/Karara/Cloth/Subway/work"); FishTextManager = GameObject.Find("---FishTextManager").GetComponent <FishTextManager>(); //disable a lot of things when tutorial starts KararaB.SetActive(false); phoneAnimation.SetActive(false); //所有洗衣机里的衣服 for (int i = 0; i < ClothSlotList.Count; i++) { clothSlotTable.Add(i, ClothSlotList[i]); } inventoryBubbleSR = inventoryBubble.GetComponentsInChildren <SpriteRenderer>()[1]; for (int i = 0; i < ClothUIPosObject.Length; i++) { ClothUIPos[i] = ClothUIPosObject[i].transform.position; InventoryUIPos[i] = InventoryUIPosObject[i].GetComponent <RectTransform>().position; } }
// 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; }