protected override void Execute(PieceMoved msg)
    {
        if (!new TilePoint(gameObject).Equals(msg.To))
        {
            return;
        }

        Message.Publish(StarCollected.OnMapDataCube(gameObject));
        Message.Publish(new ObjectDestroyed(gameObject));
    }
Beispiel #2
0
 public void CollectStar()
 {
     CollectedStars++;
     StarCollected?.Invoke();
 }