private void BlockSignalsOnOnBlockEnd(Block block) { // 这里判断是否有状态在继续 GetComponent <Animator>().SetTrigger(NpcData.BornAnimation); Log.Debug("结束 " + block.BlockName); }
/// <summary> /// NPC与玩家交互 /// </summary> public void Interaction() { switch (NpcData.NpcType) { case NPCType.Normal: Log.Debug(NpcData.Conversation); Flowchart.BroadcastFungusMessage(NpcData.Conversation); break; case NPCType.Shop: // 打开商店界面 GameEntry.Controller.Shop.OpenShopForm(NpcData.StoreId); break; } }
private void BlockSignalsOnOnBlockStart(Block block) { switch (Rebana.GetPlayer().GetComponent <RebanaMovement>().Direction) { case DirectionType.Up: PlayIdle(DirectionType.Down); break; case DirectionType.Down: PlayIdle(DirectionType.Up); break; case DirectionType.Left: PlayIdle(DirectionType.Right); break; case DirectionType.Right: PlayIdle(DirectionType.Left); break; } Log.Debug("开始 " + block.BlockName); }
protected override void OnError(ErrorEventArgs e) { Loger.Debug("OnError" + e.Message); base.OnError(e); }