예제 #1
0
    /*
     * public static void ResolveLimbConstraints(Limb[] limbConstraints)
     * {
     *  AppConfig.LimbConstraints = new JointId[0];
     *
     *  foreach (var constraint in limbConstraints)
     *  {
     *      int upper, lower;
     *      switch (constraint)
     *      {
     *          case Limb.UPPER_BODY:
     *              lower = (int)Limb.UPPER_BODY;
     *              upper = lower + 17;
     *              break;
     *          case Limb.LOWER_BODY:
     *              lower = (int)Limb.LOWER_BODY;
     *              upper = lower + 7;
     *              break;
     *          case Limb.LEFT_ARM_UPPER:
     *              lower = (int)Limb.LEFT_ARM_UPPER;
     *              upper = lower + 5;
     *              break;
     *          case Limb.LEFT_ARM_LOWER:
     *              lower = (int)Limb.LEFT_ARM_LOWER;
     *              upper = lower + 4;
     *              break;
     *          case Limb.RIGHT_ARM_UPPER:
     *              lower = (int)Limb.RIGHT_ARM_UPPER;
     *              upper = lower + 5;
     *              break;
     *          case Limb.RIGHT_ARM_LOWER:
     *              lower = (int)Limb.RIGHT_ARM_LOWER;
     *              upper = lower + 4;
     *              break;
     *          case Limb.LEFT_LEG_UPPER:
     *              lower = (int)Limb.LEFT_LEG_UPPER + 1;
     *              upper = lower + 3;
     *              break;
     *          case Limb.LEFT_LEG_LOWER:
     *              lower = (int)Limb.LEFT_LEG_LOWER;
     *              upper = lower + 2;
     *              break;
     *          case Limb.RIGHT_LEG_UPPER:
     *              lower = (int)Limb.RIGHT_LEG_UPPER;
     *              upper = lower + 3;
     *              break;
     *          case Limb.RIGHT_LEG_LOWER:
     *              lower = (int)Limb.RIGHT_LEG_LOWER;
     *              upper = lower + 2;
     *              break;
     *      }
     *  }
     * }
     */

    public static bool Initialize()
    {
        if (!LoadConfig())
        {
            return(false);
        }

        if (!StringRes.LoadStringResources())
        {
            return(false);
        }

        //ResolveLimbConstraints(AppConfig.LimbConstraints);

        vfxGraphSupported = SystemInfo.supportsComputeShaders && SystemInfo.maxComputeBufferInputsVertex != 0;

        applicationInitialized = true;
        return(true);
    }
예제 #2
0
 void Start()
 {
     StringRes.LoadStringResources();
     PlayGame();
 }