void Start()
 {
     myInputState             = InputState.None;
     dragDistance             = Screen.height * 8 / 100;
     TutorialCameraController = GameObject.Find("Main Camera").GetComponent <TutorialCameraController>();
     cameraMovement           = GameObject.Find("Main Camera").GetComponent <CameraMovement>();
     TutorialManagerNew       = GameObject.Find("---TutorialManager").GetComponent <TutorialManagerNew>();
     AudioManager             = GameObject.Find("---AudioManager").GetComponent <AudioManager>();
     // washerController = GameObject.Find("").GetComponent<WasherController>();
 }
Example #2
0
    void Start()
    {
        // positions = new Vector3[4];
        // TouchController =  GameObject.Find("---TouchController").GetComponent<TouchController>();
        FinalCameraController    = GameObject.Find("Main Camera").GetComponent <FinalCameraController>();
        TutorialCameraController = GameObject.Find("Main Camera").GetComponent <TutorialCameraController>();

        if (FinalCameraController == null)
        {
            currentPage = 4;
        }
        else
        {
            currentPage = 1;
        }
        smoothSpeed = 10f;

        pageDist = Mathf.Abs(positions[0].x - positions[1].x);
    }
Example #3
0
    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;
        }
    }