IEnumerator LifeTime() { yield return(new WaitForSeconds(10 / movingSpeed * 2)); OnBurst?.Invoke(); Destroy(gameObject); }
public void InvokeOnBurst(object a_sender, Vector3EventArgs a_1vector3EventArgs, NumberEventArgs a_2numberEventArgs) { if (OnBurst != null) { OnBurst.Invoke(a_sender, a_1vector3EventArgs, a_2numberEventArgs); } }
public void Burst() { OnBurst?.Invoke(); StartCoroutine(Bursting()); }