Beispiel #1
0
    void Start()
    {
        go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
        ob = go.ob;

        shineState = new Dictionary <string, bool>();
        shineState.Add("Mid", false);
        shineState.Add("Fal1", false);
        shineState.Add("Fal2", false);
        shineState.Add("Fal3", false);
        shineState.Add("Fal4", false);
        shineState.Add("Fal5", false);
        shineState.Add("Fal6", false);
        shineState.Add("Sum1", false);
        shineState.Add("Sum2", false);
        shineState.Add("Sum3", false);
        shineState.Add("Sum4", false);
        shineState.Add("Sum5", false);
        shineState.Add("Sum6", false);
        shineState.Add("Spr1", false);
        shineState.Add("Spr2", false);
        shineState.Add("Spr3", false);
        shineState.Add("Spr4", false);
        shineState.Add("Spr5", false);
        shineState.Add("Spr6", false);
        shineState.Add("Win1", false);
        shineState.Add("Win2", false);
        shineState.Add("Win3", false);
        shineState.Add("Win4", false);
        shineState.Add("Win5", false);
        shineState.Add("Win6", false);
    }
Beispiel #2
0
    private bool isNew = true;           //是否新解锁


    void Start()
    {
        goManager = GameObject.Find("GameObjectManager");
        go        = goManager.GetComponent <GOManagement>();

        spellTreeDisp = go.spelltree.GetComponent <SpelltreeManager>();
    }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     goManager          = GameObject.Find("GameObjectManager");
     go                 = goManager.GetComponent <GOManagement>();
     dispManager        = go.mainUI.GetComponent <ClickManagement>();
     iconsTipManagement = go.mainUI.GetComponent <IconsTipManagement>();
 }
Beispiel #4
0
    // Start is called before the first frame update
    void Awake()
    {
        DontDestroyOnLoad(this);
        if (showInstance == null)
        {
            showInstance = this;
        }
        else
        {
            Destroy(gameObject);
        }
        SceneManager.sceneLoaded += OnSceneLoaded;


        backpackIcon       = GameObject.Find("BackpackIcon");
        spelltreeIcon      = GameObject.Find("SpelltreeIcon");
        talismanIcon       = GameObject.Find("TalismanIcon");
        memoryBookIcon     = GameObject.Find("MemoryBookIcon");
        characterStateIcon = GameObject.Find("CharacterStateIcon");
        obStateMemory      = GameObject.Find("ObStateMemory");
        obMemory           = obStateMemory.GetComponent <ObStateMemory>();
        backpack           = GameObject.Find("Backpack");
        memoryBook         = GameObject.Find("MemoryBook");
        itemHolder         = GameObject.Find("ItemHolder");
        itemPositionHolder = GameObject.Find("ItemPositionHolder");
        extraItemHolder    = GameObject.Find("ExtraItemHolder");
        noReferrence       = GameObject.Find("NoReferrence");
        mainUI             = GameObject.Find("MainUI");

        talisman = GameObject.Find("Talisman");

        spelltree = GameObject.Find("Spelltree");

        talisElementDesc = GameObject.Find("TElementDesc");
        talisElementText = GameObject.Find("W_TElementDesc");
        talisman1        = GameObject.Find("B_Talisman1");
        // spellDesc = GameObject.Find("spellDesc");
        secondLevelScroll = GameObject.Find("SLevelScroll");

        ob              = GameObject.Find("OB");
        characterState  = GameObject.Find("CharacterState");
        clickManagement = mainUI.GetComponent <ClickManagement>();

        characterCamera = GameObject.Find("Main Camera");

        blackSceneDisp  = GameObject.Find("TemporaryBlackScene");
        blackScene      = blackSceneDisp.GetComponent <BlackScene>();
        inGameMenu      = GameObject.Find("InGameMenu");
        sceneTransition = GameObject.Find("SceneTransition");
        levelLoader     = sceneTransition.GetComponent <LevelLoader>();

        iconsTip = GameObject.Find("IconsTip");

        // 设置不同场景的zoom范围
        clickManagement.zoomInAllowedSceneWithRange = new Dictionary <string, (float, float)>();
        // clickManagement.zoomInAllowedSceneWithRange.Add("Tutorial (With UI)", (-20, -10));
        clickManagement.zoomInAllowedSceneWithRange.Add("WaterLevelCave", (-20, -10));
        clickManagement.zoomInAllowedSceneWithRange.Add("WaterLevelGround", (-20, -10));
    }
Beispiel #5
0
    private TalismanManager talismanManager; //符箓的总信息管理

    // Start is called before the first frame update
    void Start()
    {
        goManager = GameObject.Find("GameObjectManager");
        go        = goManager.GetComponent <GOManagement>();

        origin          = gameObject.GetComponent <RectTransform>().localPosition;
        talismanManager = go.talisman.GetComponent <TalismanManager>();
    }
Beispiel #6
0
 // Start is called before the first frame update
 void Start()
 {
     goManager        = GameObject.Find("GameObjectManager");
     go               = goManager.GetComponent <GOManagement>();
     nextOnClick      = false;
     index            = 0;
     textDisplay.text = sentences[index];
 }
Beispiel #7
0
 // Start is called before the first frame update
 void Start()
 {
     go            = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
     display       = go.memoryBook;
     length        = 0;
     length        = memoryBookInfos.Length;
     memoryPageNum = (int)Math.Ceiling((double)length / 3);
     this.Show(false);
 }
Beispiel #8
0
    // Start is called before the first frame update
    void Start()
    {
        goManager = GameObject.Find("GameObjectManager");
        go        = goManager.GetComponent <GOManagement>();

        iconsTipDisp = go.iconsTip;
        iconsName    = iconsTipDisp.transform.GetChild(0).gameObject.GetComponent <Text>();

        iconsTipDisp.SetActive(false);
    }
    public Text spellName, recipe, desc; //前一行的文本

    // Start is called before the first frame update
    void Start()
    {
        goManager = GameObject.Find("GameObjectManager");
        go        = goManager.GetComponent <GOManagement>();

        display = go.spelltree;
        // textbox = go.spellDesc;

        UpdateSpell();
    }
Beispiel #10
0
    private void Start()
    {
        go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();

        // This would cast rays only against colliders in layer 8.
        // But instead we want to collide against everything except layer 8. The ~ operator does this, it inverts a bitmask.
        layerMask = 1 << 8;
        layerMask = ~layerMask;

        dispManager = go.mainUI.GetComponent <ClickManagement>();
        // ob = go.ob.GetComponent<ObManagement>();
    }
Beispiel #11
0
    void Start()
    {
        goManager = GameObject.Find("GameObjectManager");
        go        = goManager.GetComponent <GOManagement>();

        dispManager      = go.mainUI.GetComponent <ClickManagement>();
        spelltreeManager = go.spelltree.GetComponent <SpelltreeManager>();
        display          = go.talisman;
        backpack         = go.backpack.GetComponent <Backpack>();
        textbox          = go.talisElementDesc;
        eleName          = go.talisElementText.GetComponent <Text>();
        sLevelScroll     = go.secondLevelScroll;

        sLevelScroll.SetActive(false);
        display.SetActive(false);
        textbox.SetActive(false);
    }
Beispiel #12
0
 // Start is called before the first frame update
 void Start()
 {
     draggedItem = null;
     holdItem    = false;
     // isOnEquipButton = true;
     placedOnGround    = false;
     itemOriginalScale = transform.localScale;
     goManager         = GameObject.Find("GameObjectManager");
     go             = goManager.GetComponent <GOManagement>();
     raycaster      = go.clickManagement.raycaster;
     equipmentState = go.equipmentState.GetComponent <EquipmentState>();
     // ob = go.ob.GetComponent<ObManagement>();
     textbox            = go.textbox;
     equipButton        = go.equipButton;
     equipButtonManager = equipButton.GetComponent <EquipmentButton>();
     itemName           = go.itemName;
     clickInScene       = goManager.GetComponent <ClickInScene>();
 }
Beispiel #13
0
 void Awake()
 {
     AllDialogTextDic = new Dictionary <string, string>();
     dialog           = GameObject.Find("DialogBox");
     dialogText       = GameObject.Find("DialogText").GetComponent <Text>();
     //option = GameObject.Find("G_Options");
     twoChoice    = GameObject.Find("TwoChoice");
     threeChoice  = GameObject.Find("ThreeChoice");
     fourChoice   = GameObject.Find("FourChoice");
     fiveChoice   = GameObject.Find("FiveChoice");
     nextButton   = GameObject.Find("NextButton");
     chatIcon     = GameObject.Find("ChatHeadIcon");
     chatNameIcon = GameObject.Find("ChatNameIcon");
     // OptionList = new List<string>();
     goManager = GameObject.Find("GameObjectManager");
     go        = goManager.GetComponent <GOManagement>();
     isWindows = dialog.GetComponent <IsWindows>().isWindows;
 }
Beispiel #14
0
    // Start is called before the first frame update
    void Start()
    {
        go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
        ob = go.ob.GetComponent <ObManagement>();

        backpack       = go.backpack;
        canvas         = go.mainUI;
        textbox        = go.textbox;
        imageObjects   = new ArrayList();
        length         = 0;
        currPageNumber = 0;
        bpScrollSpeed  = 0.5f;
        DictionarySetup();
        this.AddItem("重塑符", false);
        this.AddItem("现元符", false);
        this.AddItem("阳火符", false);
        this.AddItem("轻身符", false);
        this.Show(false); //游戏开始时不显示背包
    }
Beispiel #15
0
    // Start is called before the first frame update
    void Start()
    {
        go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();

        spell         = false;
        taoBookOpened = false;

        // s = GameObject.Find("MainUI").GetComponent<SpellTreeManager>();
        itemOnPuzzle = new Hashtable();
        itemOnPuzzle.Add("重塑符", "Crutch,BurntCharcoal,PickBurntCoal");
        itemOnPuzzle.Add("阳火符", "OilLight,NewWood");
        itemOnPuzzle.Add("现元符", "WCPlaceholder");
        itemOnPuzzle.Add("Earth Key", "EarthPortal");
        itemOnPuzzle.Add("Changable Soil", "River,Flowerpot,Flowerpot cld,FutureRock,EarthPortal");
        itemOnPuzzle.Add("PickBurntCoal", "BigStovehole,SmallStovehole");

        // talisDisp = GameObject.FindObjectOfType<TalismanManager>();
        dispManager = GameObject.FindObjectOfType <ClickManagement>();
    }
Beispiel #16
0
 void Start()
 {
     go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
 }
Beispiel #17
0
 void Start()
 {
     go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
     go.ob.SetActive(false);
     transferToBackpackItemOB = GameObject.Find("TestOB");
 }
Beispiel #18
0
 private void Start()
 {
     goManager = GameObject.Find("GameObjectManager");
     go        = goManager.GetComponent <GOManagement>();
     coalOB    = coal.GetComponent <ObItem>().correspondingOB;
 }
Beispiel #19
0
 void Awake()
 {
     go           = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
     backpackDisp = go.backpack.GetComponent <Backpack>();
 }
Beispiel #20
0
    // [System.Serializable]
    // public struct InSceneObInfo
    // {
    //     public string sceneName;
    //     public string[] InSceneOb;
    // }
    // [System.Serializable]
    // public struct ObInfo
    // {
    //     public string ObName;
    //     public int currentState;
    // }
    // public InSceneObInfo[] InSceneObInfos;
    // public ObInfo[] ObInfos;
    // public string[] ItemWithOB;
    // public void DictionarySetup()
    // {
    //     // InSceneObDictionary = new Dictionary<string, string[]>();
    //     inSceneObcurrentStateDictionary = new Dictionary<string, int>();
    //     savedItemObDictionary = new Dictionary<string, GameObject>();
    //     // int numberofScene = InSceneObInfos.Length;
    //     // int numberOfOb = ObInfos.Length;
    //     // int numberOfItem = ItemWithOB.Length;
    //     // for (int i = 0; i < numberofScene; i++)
    //     //     InSceneObDictionary.Add(InSceneObInfos[i].sceneName, InSceneObInfos[i].InSceneOb);
    //     // for (int i = 0; i < numberOfOb; i++)
    //     //     currentStateDictionary.Add(ObInfos[i].ObName, ObInfos[i].currentState);
    //     // for (int i = 0; i < go.backpack.backpackItemInfos.Length; i++)
    //     //     itemObDictionary.Add(ItemWithOB[i], null);
    //     // currentStateDictionary = new Dictionary<string, int>();
    //     // numberOfOb = ObStatusInfos.Length;

    // }

    void Start()
    {
        go = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
        inSceneObStateDictionary = new Dictionary <string, int>();
        savedItemObDictionary    = new Dictionary <string, GameObject>();
    }
Beispiel #21
0
 // Start is called before the first frame update
 void Awake()
 {
     goManager = GameObject.Find("GameObjectManager");
     go        = goManager.GetComponent <GOManagement>();
 }
Beispiel #22
0
 void Start()
 {
     startPos = transform.rotation;
     go       = GameObject.Find("GameObjectManager").GetComponent <GOManagement>();
 }
Beispiel #23
0
 private void Start()
 {
     goManager = GameObject.Find("GameObjectManager");
     go        = goManager.GetComponent <GOManagement>();
 }
Beispiel #24
0
 void Start()
 {
     goManager   = GameObject.Find("GameObjectManager");
     go          = goManager.GetComponent <GOManagement>();
     loadedLevel = new HashSet <string>();
 }