Esempio n. 1
0
        private void BlockSignalsOnOnBlockEnd(Block block)
        {
            // 这里判断是否有状态在继续

            GetComponent <Animator>().SetTrigger(NpcData.BornAnimation);
            Log.Debug("结束 " + block.BlockName);
        }
Esempio n. 2
0
        /// <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;
            }
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 protected override void OnError(ErrorEventArgs e)
 {
     Loger.Debug("OnError" + e.Message);
     base.OnError(e);
 }