コード例 #1
0
 public void Collect(GameObject item)
 {
     // trigger the event
     OnCollect?.Invoke(item);
     isSelecting = false;
 }
コード例 #2
0
 public void AddSmallCollectible()
 {
     CollectiblesSmall += 1;
     OnCollect.Invoke();
 }
コード例 #3
0
 public void AddLargeCollectible()
 {
     CollectiblesLarge += 1;
     OnCollect.Invoke();
 }
コード例 #4
0
ファイル: Master.cs プロジェクト: karthik006/duel
 public static void DestroyPortion(OnCollect portion)
 {
     Destroy(portion.gameObject);
 }