Physics 변경 Crewmate <-> Crewmate
+ 캐릭터 죽을 때, HpSlider 안사라지는 버그 수정
This commit is contained in:
parent
f7b7eff9f0
commit
a00890d779
@ -57,6 +57,11 @@ namespace BlueWaterProject
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected virtual void OnDestroy()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
protected virtual void Start()
|
protected virtual void Start()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -164,11 +164,6 @@ namespace BlueWaterProject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDisable()
|
|
||||||
{
|
|
||||||
hpSlider.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Start()
|
protected override void Start()
|
||||||
{
|
{
|
||||||
base.Start();
|
base.Start();
|
||||||
@ -318,6 +313,7 @@ namespace BlueWaterProject
|
|||||||
}
|
}
|
||||||
Agent.enabled = false;
|
Agent.enabled = false;
|
||||||
|
|
||||||
|
Destroy(hpSlider.gameObject, 2f);
|
||||||
Destroy(gameObject, 2f);
|
Destroy(gameObject, 2f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -244,11 +244,6 @@ namespace BlueWaterProject
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDisable()
|
|
||||||
{
|
|
||||||
hpSlider.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Start()
|
protected override void Start()
|
||||||
{
|
{
|
||||||
base.Start();
|
base.Start();
|
||||||
@ -315,6 +310,7 @@ namespace BlueWaterProject
|
|||||||
Agent.isStopped = true;
|
Agent.isStopped = true;
|
||||||
Agent.enabled = false;
|
Agent.enabled = false;
|
||||||
|
|
||||||
|
Destroy(hpSlider.gameObject, 2f);
|
||||||
Destroy(gameObject, 2f);
|
Destroy(gameObject, 2f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -214,11 +214,6 @@ namespace BlueWaterProject
|
|||||||
SetCurrentHp(MaxHp);
|
SetCurrentHp(MaxHp);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnDisable()
|
|
||||||
{
|
|
||||||
hpSlider.gameObject.SetActive(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void Update()
|
protected override void Update()
|
||||||
{
|
{
|
||||||
if (useHpSlider)
|
if (useHpSlider)
|
||||||
@ -356,6 +351,7 @@ namespace BlueWaterProject
|
|||||||
}
|
}
|
||||||
Agent.enabled = false;
|
Agent.enabled = false;
|
||||||
|
|
||||||
|
Destroy(hpSlider.gameObject, 2f);
|
||||||
Destroy(gameObject, 2f);
|
Destroy(gameObject, 2f);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user