void Awake() { SetDeviceType(); mainCamera = GetComponent <Camera>(); myPersonalLibrary = new MyPersonalLibrary(); QualitySettings.vSyncCount = 0; Application.targetFrameRate = 60; }
void Awake() { myPersonalLibrary = new MyPersonalLibrary(); sr = GetComponent <SpriteRenderer> (); rb = GetComponent <Rigidbody2D> (); gameController = GameObject.FindWithTag("GameController"); gameCtrl = gameController.GetComponent <GameCtrl> (); cameraScript = GameObject.FindWithTag("MainCamera").GetComponent <CameraScript> (); }