void OnBindPlayer(EventMgr.EventData ed) { player = ed.data as Player; }
void OnUnzipEvent(EventMgr.EventData eb) { UnzipEventValue v = eb.data as UnzipEventValue; OnUnzipProgress(v.progress, v.code); }
void OnBindPlayer(EventMgr.EventData ed) { hero = ed.data as Player; camCtrl = Camera.main.GetComponent <CameraController>(); camCtrl.mTarget = hero.transform; }
void onPlayer(EventMgr.EventData ed) { mPlayer = ed.data as Player; }