public static void Init()
 {
     if (_instance == null)
     {
         GameObject go = new GameObject("PicoInputManager");
         _instance = go.AddComponent <PicoInputManager>();
     }
 }
Exemple #2
0
    void Start()
    {
        PicoInputManager.Init();
        List <TestPhotoModel> list = new List <TestPhotoModel>();

        for (int i = 0; i < 100; i++)
        {
            TestPhotoModel data = new TestPhotoModel();
            data.Name = "I am:" + i.ToString();
            list.Add(data);
        }

        mScolleView.InitData(list);
        mScolleView.SetController(true);
    }