Example #1
0
        protected override void Awake()
        {
            base.Awake();

            abrColor    = new Color32[2];
            abrColor[0] = new Color32(0, 0, 0, Byte.MaxValue);
            abrColor[1] = new Color32(0, 0, 0, Byte.MaxValue);
            ClearFadeColor();
            String loadedLevelName = Application.loadedLevelName;

            LastScene           = String.Empty;
            CurrentScene        = loadedLevelName;
            NextScene           = String.Empty;
            PendingCurrentScene = String.Empty;
            PendingNextScene    = String.Empty;
            IsFading            = false;
            IsReady             = true;
            this.fadeTex        = Texture2D.whiteTexture;
            NeedFade            = true;
            this.screenTex      = Texture2D.whiteTexture;
            _logger             = new OSDLogger();
            _logger.Init();
            OSDLogger.Instance = this._logger;

            GameObject obj = new GameObject("SoundPlayer");

            obj.transform.parent = this.transform;
            obj.AddComponent <SoundLib>();
            obj.AddComponent <SoundLibInitializer>();
        }
Example #2
0
    public static String GetRenameTexturePath(String texturePath)
    {
        OSDLogger.AddStaticMessage("---------End GetRenameTexturePath-----------------");
        String    result = String.Empty;
        String    fileNameWithoutExtension = Path.GetFileNameWithoutExtension(texturePath);
        String    nameFromFF9DBALL         = ModelFactory.GetNameFromFF9DBALL(fileNameWithoutExtension);
        Int32     geoid     = ModelFactory.GetGEOID(nameFromFF9DBALL);
        String    modelName = FF9BattleDB.GEO.GetValue(geoid);
        ModelType modelType = ModelFactory.GetModelType(modelName);
        Char      c         = fileNameWithoutExtension[fileNameWithoutExtension.Length - 1];

        result = String.Format("Models/{0}/{1}/{1}", (Int32)modelType, geoid);
        OSDLogger.AddStaticMessage("---------End GetRenameModelPath-----------------");
        return(result);
    }
Example #3
0
 public static void Initial()
 {
     SceneDirector.GetDefaultFadeInTransition();
     OSDLogger.SetBundleVersion(BundleScene.BundleVersion);
 }