GameFramework.AiLogic_Npc_General.OnStateLogicInit C# (CSharp) Method

OnStateLogicInit() protected method

protected OnStateLogicInit ( EntityInfo entity, long deltaTime ) : void
entity EntityInfo
deltaTime long
return void
        protected override void OnStateLogicInit(EntityInfo entity, long deltaTime)
        {
            AiStateInfo info = entity.GetAiStateInfo();
            info.Time = 0;
            info.HomePos = entity.GetMovementStateInfo().GetPosition3D();
            info.Target = 0;
        }