Ejemplo n.º 1
0
        public override void Init <FECgProjectileType, MCgProjectile, FCgProjectilePayload, FCgProjectileCache>(int index, FECgProjectileType e)
        {
            Cache = (CgCore.FCgProjectileCache)(object) Activator.CreateInstance <FCgProjectileCache>();

            base.Init <FECgProjectileType, MCgProjectile, FCgProjectilePayload, FCgProjectileCache>(index, e);

            ColliderShape = ECgCollisionShape.MAX;
        }
Ejemplo n.º 2
0
        public void Reset()
        {
            bAllocated  = false;
            bForce      = false;
            bProcessing = false;
            bCompleted  = false;
            StartTime   = 0.0f;
            StaleTime   = 1.0f;
            Caller      = null;
            CallerId    = INVALID_CALLER_ID;

            OnResponse_Event.Clear();

            bAsync = false;

            if (Results.IsCreated)
            {
                Results.Dispose();
            }
            if (Commands.IsCreated)
            {
                Commands.Dispose();
            }

            Type      = ECgTraceType.MAX;
            Method    = ECgTraceMethod.MAX;
            Start     = Vector3.zero;
            End       = Vector3.zero;
            Rotation  = Vector3.zero;
            LayerMask = NO_LAYER;
            Shape     = ECgCollisionShape.MAX;

            BoxParams.Reset();
            SphereParams.Reset();
            CapsuleParams.Reset();

            bReplacePending = false;
            PendingId       = INVALID_REQUEST_ID;

            Link = null;
        }