Exemple #1
0
 void Start()
 {
     cameraRigidBody = GetComponent<Rigidbody2D>();
     inputManager = GameObject.Find("Director").GetComponent<UnifiedInput>();
     inputManager.OnBackgroundDown += OnBackgroundDown;
     inputManager.OnBackgroundMove += OnBackgroundMove;
     inputManager.OnBackgroundUp += OnBackgroundUp;
 }
Exemple #2
0
 void Start()
 {
     inputManager = GameObject.Find("Director").GetComponent<UnifiedInput>();
     inputManager.OnBackgroundDown += OnMainFingerAdded;
     inputManager.OnBackgroundMove += OnMainFingerMoved;
     inputManager.OnBackgroundUp += OnMainFingerRemoved;
     inputManager.OnBackgroundSecondDown += OnSecondFingerAdded;
     inputManager.OnBackgroundSecondMove += OnSecondFingerMoved;
     inputManager.OnBackgroundSecondUp += OnSecondFingerRemoved;
 }