示例#1
0
 private void DestroyHitboxRender()
 {
     if (hitboxRender != null)
     {
         Object.Destroy(hitboxRender);
         hitboxRender = null;
     }
 }
示例#2
0
 private void CreateHitboxRender()
 {
     DestroyHitboxRender();
     if (GameManager.instance.IsGameplayScene())
     {
         hitboxRender = new GameObject().AddComponent <HitboxRender>();
     }
 }