public void Run(float x, float y, float time)
    {
        if (!this.IsValidActor())
        {
            return;
        }
        Vector3 localPosition = base.transform.parent.localPosition;
        Vector3 dest          = new Vector3(x, EventTriggerGameHelper.GetGroundPosition(x, y), y);

        dest.y += 0.2f;
        this._Actor.SetActorShow(true);
        this._ActorAction.Add(new MiniDramaActorController.ActorRun(this._Actor, localPosition, dest, time));
    }
        public bool AddChar(string ActorName, string CharKindCode, float X, float Y, int Angle, bool Hide)
        {
            if (string.IsNullOrEmpty(ActorName) || string.IsNullOrEmpty(CharKindCode))
            {
                return(false);
            }
            if (this.IsActor(ActorName))
            {
                TsLog.LogWarning(string.Format("[EventTriggerMiniDrama] ActorManager : Have Equal CharName {0}", ActorName), new object[0]);
                return(false);
            }
            NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(CharKindCode);

            if (charKindInfoFromCode == null)
            {
                return(false);
            }
            NEW_MAKECHAR_INFO nEW_MAKECHAR_INFO = new NEW_MAKECHAR_INFO();

            nEW_MAKECHAR_INFO.CharName  = TKString.StringChar(charKindInfoFromCode.GetName());
            nEW_MAKECHAR_INFO.CharPos.x = X;
            nEW_MAKECHAR_INFO.CharPos.y = EventTriggerGameHelper.GetGroundPosition(X, Y);
            nEW_MAKECHAR_INFO.CharPos.z = Y;
            float f = (float)Angle * 0.0174532924f;

            nEW_MAKECHAR_INFO.Direction.x  = 1f * Mathf.Sin(f);
            nEW_MAKECHAR_INFO.Direction.y  = 0f;
            nEW_MAKECHAR_INFO.Direction.z  = 1f * Mathf.Cos(f);
            nEW_MAKECHAR_INFO.CharKind     = charKindInfoFromCode.GetCharKind();
            nEW_MAKECHAR_INFO.CharKindType = 3;
            nEW_MAKECHAR_INFO.CharUnique   = NrTSingleton <NkQuestManager> .Instance.GetClientNpcUnique();

            int id = NrTSingleton <NkCharManager> .Instance.SetChar(nEW_MAKECHAR_INFO, false, false);

            NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(id);

            NkCharIDInfo nkCharIDInfo = new NkCharIDInfo();

            nkCharIDInfo.m_nClientID   = @char.GetID();
            nkCharIDInfo.m_nCharUnique = @char.GetCharUnique();
            nkCharIDInfo.m_nWorldID    = @char.GetWorldID();
            @char.SetExceptHideForLoad(true);
            return(this.AddActor(ActorName, nkCharIDInfo, true, Hide));
        }
 public void SetInfo(float x, float z, string ToolTipMsg)
 {
     base.transform.localPosition = new Vector3(x, EventTriggerGameHelper.GetGroundPosition(x, z), z);
     this._ToolTipMsg             = ToolTipMsg;
 }
 public override bool Verify()
 {
     return(EventTriggerGameHelper.IsQuestState(this.m_QuestUnique, QUEST_CONST.eQUESTSTATE.QUESTSTATE_NONE));
 }