public override void Init() { _mainCamera = Camera.main; InteractionMgr.RegisterNewController(this); /* * InteractionMgr m = FindObjectOfType<InteractionMgr>(); * if (m != null) * { * m.RegisterNewController(this); * } * else * { * Debug.Log("InteractionMgr not found to register controller with!"); * }*/ //crosshairs //CrosshairTexture = new Texture2D(32, 32); _lastWindowSize = new Vector2(Screen.width, Screen.height); CalculateRect(); }
public override void Init() { InteractionMgr.RegisterNewController(this); }