示例#1
0
 public void Handle(ScoreEvent message)
 {                        //分数变化
     message.getPlayer(); //获取这个分数是哪个玩家的
     if (message.getPlayer() == GameobjBase.PLAYER)
     {
         //如果分数是本机玩家的
         message.getScore();
     }
 }
    /// <summary>
    /// 判断积分消息
    /// </summary>
    /// <param name="message"></param>
    public void Handle(ScoreEvent message)
    {
        int player = message.getPlayer();
        int score  = message.getScore();

        GetComponent <MapDescription>().isWin(new playerInformation(player, score));
    }