This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| how to add a git android library project as a sub module, to a project | |
| 1. create an android project | |
| 2. add to vcs (vcs - import into version control - create git repository) | |
| 3. goto terminal and add sub-module - make sure the location folder name is different than the original project name | |
| git submodule add https://XXX@bitbucket.org/YYY/ZZZ.git | |
| 4. goto file menu - project structure | |
| 5. click '+' on left top | |
| 6. select 'import' from bottom left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using System.IO; | |
| public class LocalizationManager : MonoBehaviour | |
| { | |
| public static LocalizationManager instance; | |
| private Dictionary<string, string> localizedText; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class RoadController : MonoBehaviour | |
| { | |
| public List<GameObject> safeRoads; | |
| public List<GameObject> roadBlocks; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| using UnityEngine.UI; | |
| public class SwipeDetector : MonoBehaviour | |
| { | |
| private Vector2 fingerDownPos; | |
| private Vector2 fingerUpPos; |