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