public void UpdateThrowing(EntityKey entityKey, bool isThrow, float initVel)
            {
                ThrowingEntity throwing = _throwingContext.GetEntityWithEntityKey(entityKey);

                if (null != throwing)
                {
                    throwing.throwingData.IsThrow      = isThrow;
                    throwing.throwingData.InitVelocity = initVel;
                }
            }
Ejemplo n.º 2
0
        public static void DestroyThrowing(EntityKey entityKey)
        {
            ThrowingEntity throwing = ThrowingContext.GetEntityWithEntityKey(entityKey);

            if (null != throwing)
            {
                throwing.isFlagDestroy = true;
            }
        }
Ejemplo n.º 3
0
        public static void StartThrowingEntityFly(EntityKey entityKey, bool isThrow, float initVel)
        {
            ThrowingEntity throwing = ThrowingContext.GetEntityWithEntityKey(entityKey);

            if (null != throwing)
            {
                throwing.throwingData.IsThrow      = isThrow;
                throwing.throwingData.InitVelocity = initVel;
            }
        }
Ejemplo n.º 4
0
 public static ThrowingEntity GetEntityWithEntityKey(EntityKey entityKey)
 {
     return(ThrowingContext.GetEntityWithEntityKey(entityKey));
 }