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