Example #1
0
 void Awake()
 {
     SetDeviceType();
     mainCamera                  = GetComponent <Camera>();
     myPersonalLibrary           = new MyPersonalLibrary();
     QualitySettings.vSyncCount  = 0;
     Application.targetFrameRate = 60;
 }
Example #2
0
 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> ();
 }