Physics 변경 Crewmate <-> Crewmate

+ 캐릭터 죽을 때, HpSlider 안사라지는 버그 수정
This commit is contained in:
NTG_Lenovo 2023-10-20 15:17:52 +09:00
parent f7b7eff9f0
commit a00890d779
4 changed files with 8 additions and 15 deletions

View File

@ -55,6 +55,11 @@ namespace BlueWaterProject
protected virtual void OnDisable()
{
}
protected virtual void OnDestroy()
{
}
protected virtual void Start()

View File

@ -163,11 +163,6 @@ namespace BlueWaterProject
}
}
}
protected override void OnDisable()
{
hpSlider.gameObject.SetActive(false);
}
protected override void Start()
{
@ -318,6 +313,7 @@ namespace BlueWaterProject
}
Agent.enabled = false;
Destroy(hpSlider.gameObject, 2f);
Destroy(gameObject, 2f);
}

View File

@ -243,11 +243,6 @@ namespace BlueWaterProject
}
}
}
protected override void OnDisable()
{
hpSlider.gameObject.SetActive(false);
}
protected override void Start()
{
@ -315,6 +310,7 @@ namespace BlueWaterProject
Agent.isStopped = true;
Agent.enabled = false;
Destroy(hpSlider.gameObject, 2f);
Destroy(gameObject, 2f);
}

View File

@ -213,11 +213,6 @@ namespace BlueWaterProject
}
SetCurrentHp(MaxHp);
}
protected override void OnDisable()
{
hpSlider.gameObject.SetActive(false);
}
protected override void Update()
{
@ -356,6 +351,7 @@ namespace BlueWaterProject
}
Agent.enabled = false;
Destroy(hpSlider.gameObject, 2f);
Destroy(gameObject, 2f);
}