public override void ItemUse(int i) { if (ItemBagList.itemBagStuffList[i].ItemQttProp >= 1) { ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); if (ItemBagList.itemBagStuffList[i].ItemNameProp == ItemDictionary.ItemDic["Eyes"]) { chatCon.StartCoroutine(chatCon.ChatBoxOpener("이런건 왜 떨어\n트리는거냐?")); } else if (ItemBagList.itemBagStuffList[i].ItemNameProp == ItemDictionary.ItemDic["ZombieDust"]) { GameObject player = GameObject.Find("Player"); player.SendMessage("Damage", 100); chatCon.StartCoroutine(chatCon.ChatBoxOpener("밥경찰..\n사람잡네")); ItemBagList.itemBagStuffList[i].ItemQttProp = ItemBagList.itemBagStuffList[i].ItemQttProp - 1; if (ItemBagList.itemBagStuffList[i].ItemQttProp == 0) { ItemBagList.itemBagStuffList.Remove(ItemBagList.itemBagStuffList[i]); } } // SceneManager.LoadScene(""); } methodCaller.WhatIsInBag(); // 생각좀해보자 }
public override void ItemUse(int i) { ItemBagList.itemBagStuffList[i].ItemPic = SwapMethodCaller.SwordWeaponChange(); ChatBoxController chatCon = GameObject.Find("Player").GetComponent<ChatBoxController>(); if (thsSI == 0) { Debug.Log(0); thsSI++; ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["THSword"]; chatCon.StartCoroutine(chatCon.ChatBoxOpener("좋은대화수단이지!")); } else if (thsSI == 1) { Debug.Log(1); thsSI--; ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["UTHSword"]; chatCon.StartCoroutine(chatCon.ChatBoxOpener("왜...?")); } methodCaller.WhatIsInBag(); Debug.Log("실행됬니?"); }
//protected PlayerSkill mpUp; public override void ItemUse(int i) { if (ItemBagList.itemBagStuffList[i].ItemQttProp >= 1) { ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); chatCon.StartCoroutine(chatCon.ChatBoxOpener("이거슨\n매직머슈룸!?")); PlayerSkill mpUp = GameObject.Find("Player").GetComponent <PlayerSkill>(); PortionFxGen fxGen = GameObject.Find("Player").GetComponent <PortionFxGen>(); PlayerAudioSource polyPlay = GameObject.Find("Player").GetComponent <PlayerAudioSource>(); polyPlay.playPoly(7); mpUp.StartCoroutine(mpUp.MpPortionDOT()); fxGen.PortionFxGener(1); ItemBagList.itemBagStuffList[i].ItemQttProp = ItemBagList.itemBagStuffList[i].ItemQttProp - 1; if (ItemBagList.itemBagStuffList[i].ItemQttProp == 0) { ItemBagList.itemBagStuffList.Remove(ItemBagList.itemBagStuffList[i]); Debug.Log("바이바이"); } } methodCaller.WhatIsInBag(); // 생각좀해보자 }
public void Awake() { _state = GetComponent <CharacterState>(); _animator = GetComponent <Animator>(); _hpGager = GetComponent <HpGageShare>(); dtCoroutinCall = GetComponent <DamageText>(); chatCon = gameObject.GetComponent <ChatBoxController>(); deathInteract = true; polyPlay = gameObject.GetComponent <PlayerAudioSource>(); }
void Awake() { // hpIncresase = GetComponent <CharacterState>(); mpIncrease = GetComponent <PlayerSkill>(); maxHpIncrease = GetComponent <HpGageShare>(); exp = 0; maxExp = 15; levelText.text = level.ToString(); chatBoxCall = gameObject.GetComponent <ChatBoxController>(); }
public override void ItemUse(int i) { if (ItemBagList.itemBagStuffList[i].ItemQttProp >= 1) { ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); chatCon.StartCoroutine(chatCon.ChatBoxOpener("마! 내가이겼으! \n 살아있네!")); EndSceneLoader endSceneLoad = GameObject.Find("EndSceneLoader").GetComponent <EndSceneLoader>(); endSceneLoad.StartCoroutine(endSceneLoad.EndSceneLoaderCoroutine()); } methodCaller.WhatIsInBag(); // 생각좀해보자 }
public override void ItemUse(int i) { ItemBagList.itemBagStuffList[i].ItemPic = SwapMethodCaller.MagicWeaponChange(); ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); if (magicSI == 0) { Debug.Log(0); magicSI++; ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["MagicStaff"]; chatCon.StartCoroutine(chatCon.ChatBoxOpener("닝겐노지팡이와 튼튼데스")); } else if (magicSI == 1) { Debug.Log(1); magicSI--; ItemBagList.itemBagStuffList[i].ItemNameProp = ItemDictionary.ItemDic["UMagicStaff"]; chatCon.StartCoroutine(chatCon.ChatBoxOpener("하드모드?..")); } methodCaller.WhatIsInBag(); }
public override void ItemUse(int i) { if (ItemBagList.itemBagStuffList[i].ItemQttProp >= 1) { PortionFxGen fxGen = GameObject.Find("Player").GetComponent <PortionFxGen>(); fxGen.PortionFxGener(0); ChatBoxController chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); chatCon.StartCoroutine(chatCon.ChatBoxOpener("포션기모찌\n인정?")); PlayerAudioSource polyPlay = GameObject.Find("Player").GetComponent <PlayerAudioSource>(); polyPlay.playPoly(7); float dotHealRate = hpUp._MaxHp / 100; if (hpUp._hp > hpUp._MaxHp) { // hpUp._hp = hpUp._MaxHp; hpGageUP.HpUp(1); // 그냥 1을 넣어주면 알아서 메소드에서 맞춰줌 // yield break; 멈출필요는 없는듯 걍 만피만 유지해주면됨 만피에서 떨어지면 이하가실행 } hpUp._hp = hpUp._hp + (dotHealRate * 30); hpGageUP.HpUp(0.3f); ItemBagList.itemBagStuffList[i].ItemQttProp = ItemBagList.itemBagStuffList[i].ItemQttProp - 1; if (ItemBagList.itemBagStuffList[i].ItemQttProp == 0) { ItemBagList.itemBagStuffList.Remove(ItemBagList.itemBagStuffList[i]); } } methodCaller.WhatIsInBag(); // 생각좀해보자 }
void Awake() { MpPortionEffect = false; chatBoxCall = gameObject.GetComponent <ChatBoxController>(); polyPlay = gameObject.GetComponent <PlayerAudioSource>(); }
void Awake() { chatCon = gameObject.GetComponent <ChatBoxController>(); boolChecker = GetComponent <Animator>(); }
void Awake() { chatCon = GameObject.Find("Player").GetComponent <ChatBoxController>(); }