protected virtual void OnPieceCreated(EventArgs e) { if (PieceCreated != null) { PieceCreated.Invoke(this, e); } }
// Start is called before the first frame update void Start() { //Register created obj PieceCreated?.Invoke(gameObject); Destroy(gameObject, lifeTime); }