public override void OnInspectorGUI()
 {
     base.DrawDefaultInspector();
     npg             = (NewPlayerGuide)target;
     npg.target      = EditorGUILayout.ObjectField("TargetRectTrans", npg.target, typeof(RectTransform), true) as RectTransform;
     npg.RadusSlider = EditorGUILayout.Slider("Mask Radus", npg.RadusSlider, 0, 1000);
     npg.material    = EditorGUILayout.ObjectField("Material", npg.material, typeof(Material), true) as Material;
     UpdateMask();
 }
Beispiel #2
0
        public uint Execute(PacketDistributed ipacket)
        {
            GC_UI_NEWPLAYERGUIDE packet = (GC_UI_NEWPLAYERGUIDE )ipacket;

            if (null == packet)
            {
                return((uint)PACKET_EXE.PACKET_EXE_ERROR);
            }
            //enter your logic
            string UIName = packet.UIName;
            int    nIndex = packet.Index;

            NewPlayerGuide.NewPlayerGuideOpt(UIName, nIndex);
            return((uint)PACKET_EXE.PACKET_EXE_CONTINUE);
        }
    void MissionNewPlayerGuide(int nType)
    {
        bool bRet = false;

        switch (nType)
        {
        case (int)USER_COMMONFLAG.CF_FELLOWFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(14);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 2);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_BELLEFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(20);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 1);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_ACTIVITYFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(38);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("FunctionButton", 2);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_STRENGTHENFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(43);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 0);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_RESTAURANTFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(167);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 5);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_GUILDFUNCTION_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(206);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 8);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_XIAKEFUNCTION_OPENFLAG:
            break;

        case (int)USER_COMMONFLAG.CF_JICHE_THESECONDDAY_OPENFLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(1);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("NewFunction", 16);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_GUAJI_FLAG:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(NewPlayerGuide.GUAJIMISSIONID);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("FunctionButton", 1);
            }
        }
        break;

        case (int)USER_COMMONFLAG.CF_OPEN_FLYWING:
        {
            bRet = GameManager.gameManager.MissionManager.IsHaveMission(NewPlayerGuide.WINGMISSIONID);
            if (bRet)
            {
                NewPlayerGuide.NewPlayerGuideOpt("PlayerFrame", 19);
            }
        }
        break;
        }
    }
Beispiel #4
0
 // Use this for initialization
 void Start()
 {
     m_transform = this.transform;
     myPlayerObj = GameObject.Find("MyPlayer");
     m_playerGuide = myPlayerObj.GetComponent<NewPlayerGuide>();
     lastList = creatList;
     m_GuideText = GameObject.Find("GuideText").GetComponent<GuideText>();
     m_GameMaster = GameObject.Find("MainScreen").GetComponent<GameMaster>();
     //m_collider = this.GetComponent<BoxCollider2D>();
     //m_collider.enabled = false;
 }
Beispiel #5
0
 public void onFinishGuijiGuild()
 {
     UIManager.CloseUI(UIInfo.GuaJiGuild);
     NewPlayerGuide.NewPlayerGuideOpt("FunctionButton", 1);
 }
Beispiel #6
0
    // Use this for initialization
    void Start()
    {
        //float positionY = origPositionY / (1920f / 1080f) * (1.0f * Screen.height / Screen.width);
        m_transform = this.transform;
        //m_transform.position = new Vector2(0, positionY);

        progressBarHeadObj = GameObject.Find("progressbar_head");
        progressBarHeadScript = progressBarHeadObj.GetComponent<progressBarHead>();

        progressBarMidObj = GameObject.Find("progressbar_mid");
        progressBarMidScript = progressBarMidObj.GetComponent<progressBarMid>();

        progressBarTailObj = GameObject.Find("progressbar_tail");
        progressBarTailScript = progressBarTailObj.GetComponent<progressBarTail>();

        enemyCreatorObj = GameObject.Find("EnemyCreator");
        enemyManagerScript = enemyCreatorObj.GetComponent<EnemyManager>();

        playerObj = GameObject.Find("Hero");
        playerScript = playerObj.GetComponent<PlayerActions>();

        m_mainCamera = Camera.main;
        cameraChangeScript = m_mainCamera.GetComponent<CameraChange>();

        liz2Obj = GameObject.Find("liz2");
        liz2Script = liz2Obj.GetComponent<Liz2Manager>();

        liz3Obj = GameObject.Find("liz3");
        liz3Script = liz3Obj.GetComponent<Liz2Manager>();

        lizObj = GameObject.Find("liz");
        lizScript = lizObj.GetComponent<LizManager>();

        heroLiz1Obj = GameObject.Find("HeroLiz1");
        heroLiz1Script = heroLiz1Obj.GetComponent<Liz2Manager>();

        heroLiz2Obj = GameObject.Find("HeroLiz2");
        heroLiz2Script = heroLiz2Obj.GetComponent<Liz2Manager>();

        MyPlayerObj = GameObject.Find("MyPlayer");
        m_playerGuideScript = MyPlayerObj.GetComponent<NewPlayerGuide>();

        m_audioManager = GameObject.Find("Audios").GetComponent<AudioManager>();

        m_GuideText = GameObject.Find("GuideText").GetComponent<GuideText>();
        m_GameMaster = GameObject.Find("MainScreen").GetComponent<GameMaster>();
    }
 void Init()
 {
     npg    = (NewPlayerGuide)target;
     canvas = GameObject.Find("Canvas").GetComponent <Canvas> ();
     UpdateMask();
 }