示例#1
0
    //============================================================================================================================================================================

    public void Zoom_UI_Init()
    {
        Zoom_Ani_State = ZOOM_ANI_STATE.IDEL;
        Sniper_Aim_Image.gameObject.SetActive(false);
        Sniper_Lockon_Image.gameObject.SetActive(false);
        Dotsight_Aim_Image.gameObject.SetActive(false);

        Aim_UDLR_OJ_Active(true);

        MAX_FieldOfView = 50.0f;
        Zoom_Ani_Speed  = 4.0f;
        Zoom_Ani_Time   = 0.0f;

        Sniper_Aim_Image.localScale = new Vector3(1.0f, 1.0f, 0.0f);
        for (int i = 0; i < Sniper_Img_OJ.Length; i++)
        {
            Sniper_Img_OJ[i].color = new Color(Sniper_Img_OJ[i].color.r, Sniper_Img_OJ[i].color.g, Sniper_Img_OJ[i].color.b, 1);
        }

        Dotsight_Aim_Image.localScale = new Vector3(1.0f, 1.0f, 0.0f);
        for (int i = 0; i < Dotsight_Img_OJ.Length; i++)
        {
            Dotsight_Img_OJ[i].color = new Color(Dotsight_Img_OJ[i].color.r, Dotsight_Img_OJ[i].color.g, Dotsight_Img_OJ[i].color.b, 1);
        }

        CameraControlScript.Camera_FieldOfView = MAX_FieldOfView;
    }
示例#2
0
    public void Zoom_Ani_Init(ZOOM_ANI_STATE _Sniper_Ani_State, int _Zoom_Ani_Kind = 0)
    {
        Zoom_Ani_State = _Sniper_Ani_State;

        switch (Zoom_Ani_State)
        {
        case ZOOM_ANI_STATE.IDEL:

            Sniper_Aim_Image.gameObject.SetActive(false);
            Sniper_Lockon_Image.gameObject.SetActive(false);

            Dotsight_Aim_Image.gameObject.SetActive(false);

            Play_Script.Shot_Button(BUTTON_DIR_STATE.LEFT, PLAYER_SHOT_STATE.SHOT_END);
            Shot_Left_Button_View(false);

            break;

        case ZOOM_ANI_STATE.ZOOM_IN:

            Zoom_Ani_Kind = _Zoom_Ani_Kind;

            if (Zoom_Ani_Kind == 0)
            {
                Sniper_Aim_Image.gameObject.SetActive(true);
                Sniper_Lockon_Image.gameObject.SetActive(false);
            }
            else if (Zoom_Ani_Kind == 1)
            {
                Dotsight_Aim_Image.gameObject.SetActive(true);
                Aim_UDLR_OJ_Active(false);
            }

            //수동일때만 왼쪽 샷버튼 보인다.
            if (Play_Script.Option_Auto_Shot == false)
            {
                Shot_Left_Button_View(true);
            }

            break;

        case ZOOM_ANI_STATE.ZOOM_END:

            //if (Zoom_Ani_Kind == 0)
            //{
            //    Sniper_Lockon_Image.gameObject.SetActive(true);
            //}

            break;

        case ZOOM_ANI_STATE.ZOOM_OUT:

            if (Zoom_Ani_Kind == 0)
            {
                Sniper_Aim_Image.gameObject.SetActive(true);
                Sniper_Lockon_Image.gameObject.SetActive(false);
            }
            else if (Zoom_Ani_Kind == 1)
            {
                Dotsight_Aim_Image.gameObject.SetActive(true);
                Aim_UDLR_OJ_Active(true);
            }

            break;
        }
    }
示例#3
0
    //============================================================================================================================================================================

    public void Panel_Init()
    {
        if (Link_Script.i.Play_Mode == BattleKind.ALONE_PLAY_BATTLE)//싱글모드
        {
            Kill_Num_BG_OJ.SetActive(false);
            Kill_Num_Training.SetActive(true);
            Progress_Button_OJ.SetActive(false);
        }
        else
        {
            Kill_Num_BG_OJ.SetActive(true);
            Kill_Num_Training.SetActive(false);
            Progress_Button_OJ.SetActive(true);
        }

        Zoom_Ani_State = ZOOM_ANI_STATE.IDEL;
        Sniper_Aim_Image.gameObject.SetActive(false);
        Sniper_Lockon_Image.gameObject.SetActive(false);
        Dotsight_Aim_Image.gameObject.SetActive(false);

        Sub_Skill_Button_OJ.SetActive(false);

        Shot_Left_Button_View(false);

        Main_Gun_RemainBullet.text = "" + 0;
        Sub_Gun_RemainBullet.text  = "" + 0;

        //주,보조 무기 선택되어 있는 UI 체크
        Gun_Select_Init(GUN_EQUIP_STATE.MAIN);

        //게임 종료 목표 킬수
        Red_DeathCount_Text.text  = "" + Link_Script.i.GameOver_Kill_Max;
        Blue_DeathCount_Text.text = "" + Link_Script.i.GameOver_Kill_Max;

        ComboCount_Num.sprite = ImageManager.instance.Get_Sprite(string.Format("{0}{1}", DefineKey.BattleCombo, 1));
        ComboCount_OJ.SetActive(false);

        PowerUp_Buff_OJ.SetActive(false);

        Headshot_OJ.SetActive(false);
        Kill_Message_OJ.SetActive(false);
        Damage_OJ.SetActive(false);
        XRay_OJ.SetActive(false);
        Red_Arrow_OJ.SetActive(false);
        Blue_Arrow_OJ.SetActive(false);

        if (Link_Script.i.User_Team == 0)
        {
            Red_Arrow_OJ.SetActive(true);
        }
        else
        {
            Blue_Arrow_OJ.SetActive(true);
        }

        //Exit_Button_OJ.SetActive(false);
        //Exit_Button_View_Time = 0.0f;

        Kill_Message_View_Time = 0.0f;
        Kill_Message_Kill      = "";
        Death_Message_Kill     = "";

        Red_Kill_Count = 0;
        //Red_Dead_Count = 0;
        Blue_Kill_Count = 0;
        //Blue_Dead_Count = 0;

        Network_State_OJ.SetActive(false);
    }