private void me_OnCollisionEvent(object sender, OnCollisionEventArgs args) { }
private void Shot_OnCollisionEvent(object sender, OnCollisionEventArgs args) { // remove ourselves. _scene.GameObjects.RemoveObject(this.Id); }
void Destroy(object sender, OnCollisionEventArgs e) { e.Collider.gameObject.GetComponent <IDespawnable>().Despawn(); GameManager.Current.IncreaseScore(); }
private void EnemyShip_OnCollisionEvent(object sender, OnCollisionEventArgs args) { MainScene.SpawnShip(); Scene.GameObjects.RemoveObject(this.Id); }
private void OnCollided(OnCollisionEventArgs e) { collided?.Invoke(this, e); }
private void notifyListners(OnCollisionEventArgs pArgs) { OnCollisionEvent(this, pArgs); }