예제 #1
0
        public void Load()
        {
            if (target == null)
            {
                target = SaveGame.Load <Transform> ("transform");
            }
            else
            {
                SaveGame.LoadInto("transform", target);
            }



            Walked = SaveGame.Load("walking", Walked);


            if (Walked == true)
            {
                Walker.SetActive(false);
                Vcam.SetActive(false);
                cam.unlockCam();
                Canvas.SetActive(true);
                Fader.SetActive(false);
            }



            SuitCase = SaveGame.Load("puitcase", SuitCase);


            if (SuitCase == true)
            {
                SuitAnimator.SetTrigger("kofferon");
                KofferScriptDeactivator();
            }

            else
            {
            }



            Opened = SaveGame.Load("bool", Opened);

            if (Opened == true)
            {
                DoorTrigger.SetActive(false);
            }
            else
            {
            }



            CrowTriggered = SaveGame.Load("boolCrow", CrowTriggered);

            if (CrowTriggered == true)
            {
                crowtriggerobj.SetActive(false);
            }
            else
            {
            }



            Gate = SaveGame.Load("gate", Gate);

            if (Gate == true)
            {
                GateAnim.SetTrigger("shotope");
            }
            else
            {
            }



            DogKilled = SaveGame.Load("dog", DogKilled);

            if (DogKilled == true)
            {
                DogActivator.SetActive(false);
            }
            else
            {
            }


            AxePicked = SaveGame.Load("axe", AxePicked);

            if (AxePicked == true)
            {
                AxePickerOBJ.SetActive(false);
            }
            else
            {
            }



            vaseBroken = SaveGame.Load("vase", vaseBroken);

            if (vaseBroken == true)
            {
                vaseStandard.SetActive(false);
                vaseBROKEN.SetActive(true);
            }
            else
            {
            }
        }