Level save + load
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace SimpleFileBrowser
|
||||
{
|
||||
[RequireComponent( typeof( RectTransform ) )]
|
||||
public class ListItem : MonoBehaviour
|
||||
{
|
||||
public object Tag { get; set; }
|
||||
public int Position { get; set; }
|
||||
|
||||
private IListViewAdapter adapter;
|
||||
|
||||
internal void SetAdapter( IListViewAdapter listView )
|
||||
{
|
||||
this.adapter = listView;
|
||||
}
|
||||
|
||||
public void OnClick()
|
||||
{
|
||||
if( adapter.OnItemClicked != null )
|
||||
adapter.OnItemClicked( this );
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user