示例#1
0
 public void DestroyWithoutScore()
 {
     lockOn.RemoveMe(transform);
     OnDestroyWithoutScore.Invoke();
     if (!Addressables.ReleaseInstance(this.gameObject))
     {
         Destroy(gameObject);
     }
 }
示例#2
0
 public void DestroyWithoutScore()
 {
     lockOn.RemoveMe(transform);
     OnDestroyWithoutScore.Invoke();
     StartCoroutine(this.DelayMethod(1f, () =>
     {
         if (!Addressables.ReleaseInstance(this.gameObject))
         {
             Destroy(gameObject);
         }
     }));
 }