void Start() { // Initializers aUtil = FindObjectOfType <AspectUtility>(); dMan = FindObjectOfType <DialogueManager>(); gwc = FindObjectOfType <GWC001>(); mainCamera = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>(); pause = GameObject.Find("PauseScreen"); pMove = FindObjectOfType <PlayerMovement>(); touches = FindObjectOfType <TouchControls>(); maxDoubleTapTime = 0.333f; perspectiveZoomSpeed = 0.1f; // The rate of change of the field of view in perspective mode. orthoZoomSpeed = 0.0125f; // The rate of change of the orthographic size in orthographic mode. speed = 0.05f; tapCount = 0; bReadyToPan = true; }
void Start() { // Initializers dMan = FindObjectOfType <DialogueManager>(); gwc = FindObjectOfType <GWC001>(); mTouches = FindObjectOfType <MobileTouchControls>(); pause = GameObject.Find("Game_Controller").GetComponent <PauseGame>(); spLogic = FindObjectOfType <SinglePlayerLogic>(); tileChar = gameObject.transform.GetChild(2); tileFlag = gameObject.transform.GetChild(3); tileIcon = gameObject.transform.GetChild(0); tileName = gameObject.transform.GetChild(1); touches = FindObjectOfType <TouchControls>(); uMan = FindObjectOfType <UIManager>(); bShowChar = true; bShowFlag = true; bShowIcon = true; bShowName = true; }