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;
                }
            }
示例#2
0
        public static void DestroyThrowing(EntityKey entityKey)
        {
            ThrowingEntity throwing = ThrowingContext.GetEntityWithEntityKey(entityKey);

            if (null != throwing)
            {
                throwing.isFlagDestroy = true;
            }
        }
示例#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;
            }
        }
示例#4
0
 public static ThrowingEntity GetEntityWithEntityKey(EntityKey entityKey)
 {
     return(ThrowingContext.GetEntityWithEntityKey(entityKey));
 }