Exemple #1
0
 /// <summary>Collects a shard piece and fires the event.</summary>
 /// <param name="shard">The shard type collected.</param>
 public static void CollectMotherShard(MotherShards shard)
 {
     if (OnMotherShardCollected != null)
     {
         OnMotherShardCollected(shard);
     }
 }
 private void MotherShardCollected(MotherShards shard)
 {
     if (shard == _ShardType)
     {
         Invoke("DeactivateShardPiece", 0.2f);
     }
 }