void Awake()
 {
     mCam            = target as ISRTSCamera;
     baseSetting     = EditorPrefs.GetBool("ISRCEBS", false);
     boundSetting    = EditorPrefs.GetBool("ISRCEBOS", false);
     followSetting   = EditorPrefs.GetBool("ISRCEFS", false);
     mouseSetting    = EditorPrefs.GetBool("ISRCEMS", false);
     keyboardSetting = EditorPrefs.GetBool("ISRCEKS", false);
     touchSetting    = EditorPrefs.GetBool("ISRCETS", false);
     previewing      = EditorPrefs.GetBool("ISRCEPING", false);
 }
Example #2
0
 void OnMouseUp()
 {
     ISRTSCamera.LockFixedPointForMain(point);
 }
 void OnMouseUp()
 {
     ISRTSCamera.FollowForMain(transform);
 }
Example #4
0
 void Awake()
 {
     self       = this;
     selfT      = transform;
     groundMask = 1 << groundLayer;
 }
    void Start()
    {
        miniCamera = miniMap.GetComponent <Camera>();

        mainCamera = Camera.main.GetComponent <ISRTSCamera> ();
    }