18 lines
348 B
C#
18 lines
348 B
C#
|
using System.Collections;
|
|||
|
using System.Collections.Generic;
|
|||
|
using UnityEngine;
|
|||
|
|
|||
|
public class Player : MonoBehaviour
|
|||
|
{
|
|||
|
|
|||
|
void Start()
|
|||
|
{
|
|||
|
EventCenter.GetInstance().AddEventListener("MonsterDead",MonsterDeadDo);
|
|||
|
}
|
|||
|
|
|||
|
public void MonsterDeadDo(object info)
|
|||
|
{
|
|||
|
Debug.Log("<22><><EFBFBD>һ<EFBFBD><D2BB>ý<EFBFBD><C3BD><EFBFBD>" +(info as Monster).name1);
|
|||
|
}
|
|||
|
}
|