feat: 캐릭터 스킬 Execute 로직 수정
This commit is contained in:
@@ -160,7 +160,7 @@ namespace TON
|
|||||||
attackCollider.EnableCollider(false);
|
attackCollider.EnableCollider(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool SkillAttack(string skillId)
|
public void SkillAttack(string skillId)
|
||||||
{
|
{
|
||||||
// 스킬 매니저에서 스킬을 쏠 수 있는지 여부를 판단
|
// 스킬 매니저에서 스킬을 쏠 수 있는지 여부를 판단
|
||||||
bool canExecute = SkillDataManager.Singleton.CanExecuteSkill(skillId);
|
bool canExecute = SkillDataManager.Singleton.CanExecuteSkill(skillId);
|
||||||
@@ -172,8 +172,6 @@ namespace TON
|
|||||||
// 스킬 매니저에 스킬 발사 요청
|
// 스킬 매니저에 스킬 발사 요청
|
||||||
SkillDataManager.Singleton.ExecuteSkill(skillId, firePoint, lastDirection);
|
SkillDataManager.Singleton.ExecuteSkill(skillId, firePoint, lastDirection);
|
||||||
}
|
}
|
||||||
|
|
||||||
return canExecute;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ namespace TON
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 복제 됐을때 기본 상태가 잠금 상태
|
// 복제 됐을때 기본 상태가 잠금 상태
|
||||||
|
newSkillButton.GetComponent<Button>().interactable = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
createdSkillButtons.Add(newSkillButton);
|
createdSkillButtons.Add(newSkillButton);
|
||||||
@@ -69,8 +70,7 @@ namespace TON
|
|||||||
|
|
||||||
public void OnClickSkillButton(ControllerUI_SkillButton button)
|
public void OnClickSkillButton(ControllerUI_SkillButton button)
|
||||||
{
|
{
|
||||||
bool skillAttack = linkedCharactor.SkillAttack(button.skillBase.SkillData.id);
|
linkedCharactor.SkillAttack(button.skillBase.SkillData.id);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user