Physics 변경 Crewmate <-> Crewmate
+ 캐릭터 죽을 때, HpSlider 안사라지는 버그 수정
This commit is contained in:
parent
f7b7eff9f0
commit
a00890d779
@ -55,6 +55,11 @@ namespace BlueWaterProject
|
||||
protected virtual void OnDisable()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected virtual void OnDestroy()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
protected virtual void Start()
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user