Exemplo n.º 1
0
    public static BumLogic getInstance()
    {
        if (Instance == null)
        {
            Instance = new BumLogic();
        }

        return(Instance);
    }
Exemplo n.º 2
0
    void Awake()
    {
        BumBase.Log("====================================================================================");
        BumBase.Log("Application.platform = {0}", Application.platform);
        BumBase.Log("Application.dataPath = {0}", Application.dataPath);
        BumBase.Log("Application.streamingAssetsPath = {0}", Application.streamingAssetsPath);
        BumBase.Log("Application.persistentDataPath = {0}", Application.persistentDataPath);
        BumBase.Log("Application.temporaryCachePath = {0}", Application.temporaryCachePath);
        BumBase.Log("Application.unityVersion = {0}", Application.unityVersion);
        BumBase.Log("SystemInfo.deviceModel = {0}", SystemInfo.deviceModel);
        BumBase.Log("====================================================================================");

        Instance = this;

        appLogic = new BumLogic();
        appRep   = new BumRep();

        setDivce();
        DontDestroyOnLoad(this);
    }