예제 #1
0
파일: Board.cs 프로젝트: markovcd/Tetris
 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);
 }