Esempio n. 1
0
    private void Start()
    {
        instance = this;
        if (sky_Night == null)
        {
            sky_Night = Resources.Load <IN_GAME_MAIN_CAMERA>("MainCamera_mono").skyBoxNIGHT;
        }
        Camera.main.GetComponent <Skybox>().material = sky_Night;
        UIMainReferences.fengVersion = "01042015";
        NGUITools.SetActive(this.panelMain, true);
        FileVersionInfo VersionInfo = FileVersionInfo.GetVersionInfo(Application.dataPath + "/Managed/Assembly-CSharp.dll");

        UIMainReferences.CyanModVers = System.Convert.ToString(VersionInfo.ProductVersion);
        if (UIMainReferences.isGAMEFirstLaunch)
        {
            IN_GAME_MAIN_CAMERA.gametype = GAMETYPE.STOP;
            IN_GAME_MAIN_CAMERA.invertY  = 1;
            UnityEngine.Object.DontDestroyOnLoad(global::UIMainReferences.MAIN = new GameObject("Cyan_mod").AddComponent <INC>());
            UIMainReferences.version           = UIMainReferences.fengVersion;
            UIMainReferences.isGAMEFirstLaunch = false;
            GameObject gameObject = (GameObject)UnityEngine.Object.Instantiate(Resources.Load("InputManagerController"));
            gameObject.name = "InputManagerController";
            UnityEngine.Object.DontDestroyOnLoad(gameObject);
            FengGameManagerMKII.s = new string[] { "verified343", "hair", "character_eye", "glass", "character_face", "character_head", "character_hand", "character_body", "character_arm", "character_leg", "character_chest", "character_cape", "character_brand", "character_3dmg", "r", "character_blade_l", "character_3dmg_gas_r", "character_blade_r", "3dmg_smoke", "HORSE", "hair", "body_001", "Cube", "Plane_031", "mikasa_asset", "character_cap_", "character_gun" };

            FengGameManagerMKII.loginstate = 0;
        }
    }
Esempio n. 2
0
    private void OnClick()
    {
        string    text      = GameObject.Find("InputEnterPWD").GetComponent <UIInput>().label.text;
        SimpleAES simpleAES = new SimpleAES();

        if (text == simpleAES.Decrypt(PanelMultiJoinPWD.Password))
        {
            PhotonNetwork.JoinRoom(PanelMultiJoinPWD.RoomName);
        }
        else
        {
            UIMainReferences ui = GameObject.Find("UIRefer").GetComponent <UIMainReferences>();
            NGUITools.SetActive(ui.PanelMultiPWD, state: false);
            NGUITools.SetActive(ui.panelMultiROOM, state: true);
            GameObject.Find("PanelMultiROOM").GetComponent <PanelMultiJoin>().Refresh();
        }
    }
Esempio n. 3
0
    public void ConnectToIndex(int index, string roomName)
    {
        for (int num = 0; num < 10; num++)
        {
            items[num].SetActive(false);
        }
        string[] array = roomName.Split('`');
        if (array.Length > 6)
        {
            if (array[5].Length > 0)
            {
                PanelMultiJoinPWD.Password = array[5];
                PanelMultiJoinPWD.RoomName = roomName;

                UIMainReferences ui = GameObject.Find("UIRefer").GetComponent <UIMainReferences>();
                NGUITools.SetActive(ui.PanelMultiPWD, state: true);
                NGUITools.SetActive(ui.panelMultiROOM, state: false);
            }
            else
            {
                PhotonNetwork.JoinRoom(roomName);
            }
        }
    }
Esempio n. 4
0
 public void Start()
 {
     ui = GameObject.Find("UIRefer").GetComponent <UIMainReferences>();
 }
Esempio n. 5
0
 private void Awake()
 {
     Main = this;
 }
Esempio n. 6
0
 private void Awake()
 {
     instance = this;
 }
Esempio n. 7
0
 private void Destroy()
 {
     UIMainReferences.UIRefer = null;
 }
Esempio n. 8
0
 private void Awake()
 {
     UIMainReferences.UIRefer = this;
 }
Esempio n. 9
0
 void OnDestroy()
 {
     instance = null;
 }
Esempio n. 10
0
 void Awake()
 {
     instance = this;
 }