예제 #1
0
 public static void Initialize()
 {
     if (!initialized)
     {
         instance = new GameObject("OpenTouch").AddComponent <TouchManager>();
     }
 }
예제 #2
0
 private void Awake()
 {
     initialized = true;
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(this.gameObject);
     }
     DontDestroyOnLoad(gameObject);
     fingers      = new List <Finger>();
     expiredIds   = new List <int>();
     touchCamera  = Camera.main;
     startTapTime = -1;
 }
예제 #3
0
 private void Awake()
 {
     TouchManager.SetCamera(touchCamera);
 }