Beispiel #1
0
 public void InGameExit()
 {
     Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
     evt.hashTable["select_type"]  = Event.SelectedType.UI;
     evt.hashTable["select_ui_id"] = UI.ID.CreditButton;
     Core.Event.Dispatcher.Dispatch(evt);
 }
Beispiel #2
0
        public void OnClickShieldItem()
        {
            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]    = Event.SelectedType.Item;
            evt.hashTable["select_item_id"] = UI.ItemID.ShieldItem;

            Core.Event.Dispatcher.Dispatch(evt);
        }
Beispiel #3
0
        public void ChanageTurn()
        {
            SoundManager.instance.PlayOneShotSE("Sound/Effect/Button");
            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]  = Event.SelectedType.UI;
            evt.hashTable["select_ui_id"] = UI.ID.ChangeTurnButton;

            Core.Event.Dispatcher.Dispatch(evt);
        }
Beispiel #4
0
        public void Skill03()
        {
            SoundManager.instance.PlayOneShotSE("Sound/Effect/Button");
            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]     = Event.SelectedType.UI;
            evt.hashTable["select_ui_id"]    = UI.ID.SkillButton;
            evt.hashTable["select_skill_id"] = Types.SkillButton.Skill03;

            Core.Event.Dispatcher.Dispatch(evt);
        }
Beispiel #5
0
        private void Start()
        {
            //joinButton.enabled = false;
            //joinButton.image.color = nullColor;

            roomNameList.Add("자신있으면 드루와!!");
            roomNameList.Add("너만 오면 고");
            roomNameList.Add("내가 짱이야");
            roomNameList.Add("내가 다 이겨");
            roomNameList.Add("너한테는 안져");

            selectedRoom = "";
            evt          = Core.Event.Getter.Get <Event.Selected>();
        }
Beispiel #6
0
        public void MakeRoom()
        {
            loadingUI.SetActive(true);
            PhotonNetwork.CreateRoom(roomNameList[ReturnRoomName(1)] + ReturnRoomName(2).ToString(), new RoomOptions {
                MaxPlayers = 2
            }, TypedLobby.Default);
            isCreated = true;
            Debug.Log("방 생성 완료" + " " + "방 이름은" + roomNameList[ReturnRoomName(1)] + ReturnRoomName(2).ToString());

            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]  = Event.SelectedType.UI;
            evt.hashTable["select_ui_id"] = UI.ID.JoinTheRoom;
            Core.Event.Dispatcher.Dispatch(evt);
            isStart = false;
        }
Beispiel #7
0
        public void JoinedRoom()
        {
            if (selectedRoom == "")
            {
                return;
            }
            loadingUI.SetActive(true);
            PhotonNetwork.JoinRoom(selectedRoom);

            SoundManager.instance.PlayOneShotSE("Sound/Effect/Button");
            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]  = Event.SelectedType.UI;
            evt.hashTable["select_ui_id"] = UI.ID.JoinTheRoom;
            Core.Event.Dispatcher.Dispatch(evt);
            isStart = false;
        }
Beispiel #8
0
 private void Awake()
 {
     evt2 = new Event.GameResult();
     evt  = new Event.Selected();
     et   = new Event.OnEvent();
     skillLists.Add(skill01Tiles);
     skillLists.Add(skill02Tiles);
     skillLists.Add(skill03Tiles);
     SetListName();
     OnSkillTrigger();
     skeletonAnimation = gameObject.GetComponentInChildren <SkeletonAnimation>();
     stateMachine.Add(new Idle(this));
     stateMachine.Add(new Nomal(this));
     stateMachine.Add(new Move(this, Idle.MyKey));
     stateMachine.Add(new UsingSkill(this, Idle.MyKey));
     stateMachine.Add(new Hit(this, Idle.MyKey));
     stateMachine.Add(new UsingMoveSkill(this, Idle.MyKey));
     stateMachine.Add(new Miss(this, Idle.MyKey));
     stateMachine.Add(new MoveSkillMiss(this, Idle.MyKey));
     stateMachine.Add(new Death(this, Nomal.MyKey));
 }
Beispiel #9
0
        public void OnClickStartGame()
        {
            if (!isSelectedItem)
            {
                if (itemSelected.activeSelf == false)
                {
                    SoundManager.instance.PlayOneShotSE("Sound/Effect/Button");
                    itemSelected.SetActive(true);
                    Invoke("OffItemSelected", 1.5f);
                    return;
                }
                return;
            }

            SoundManager.instance.PlayOneShotSE("Sound/Effect/Button");
            Event.Selected evt = Core.Event.Getter.Get <Event.Selected>();
            evt.hashTable["select_type"]  = Event.SelectedType.UI;
            evt.hashTable["select_ui_id"] = UI.ID.GameStartButton;
            Core.Event.Dispatcher.Dispatch(e);
            Core.Event.Dispatcher.Dispatch(evt);
            SetMyInfo();
        }
Beispiel #10
0
 private void Start()
 {
     animator         = GetComponentInChildren <Animator>();
     animator.enabled = true;
     evt = Core.Event.Getter.Get <Event.Selected>();
 }
Beispiel #11
0
 private void Start()
 {
     evt = Core.Event.Getter.Get <Event.Selected>();
 }
Beispiel #12
0
 public void Start()
 {
     evt = Core.Event.Getter.Get <Event.Selected>();
     RandomCharacter();
 }
Beispiel #13
0
 private void Awake()
 {
     evt = new Event.Selected();
 }
Beispiel #14
0
 private void Awake()
 {
     e   = Core.Event.Getter.Get <Event.Item>();
     evt = Core.Event.Getter.Get <Event.Selected>();
 }