Example #1
0
    private void Awake()
    {
        _storage = GetComponent <TextureStorage>();
        _storage.Initialize();

        _picked = _storage.RandomPick();
    }
Example #2
0
    private void OnGUI()
    {
        _storage.Initialize();

        GUILayout.Label("Managed Textures : ");

        foreach (var texture in _storage.Textures)
        {
            GUILayout.Label(texture.ToString());
        }

        GUILayout.Label("Press Return to pick random texture.");
        GUILayout.Label("Picked Texture : " + _picked);
    }