// Use this for initialization. public MouseController(BuildModeController buildModeController, FurnitureSpriteController furnitureSpriteController, GameObject cursorObject) { bmc = buildModeController; bmc.SetMouseController(this); circleCursorPrefab = cursorObject; fsc = furnitureSpriteController; contextMenu = GameObject.FindObjectOfType <ContextMenu>(); dragPreviewGameObjects = new List <GameObject>(); cursorParent = new GameObject("Cursor"); mouseCursor = new MouseCursor(this, bmc); furnitureParent = new GameObject("Furniture Preview Sprites"); }
// Use this for initialization. public MouseController(BuildModeController buildModeController, FurnitureSpriteController furnitureSpriteController, UtilitySpriteController utilitySpriteController, GameObject cursorObject) { bmc = buildModeController; bmc.SetMouseController(this); circleCursorPrefab = cursorObject; fsc = furnitureSpriteController; usc = utilitySpriteController; contextMenu = GameObject.FindObjectOfType <ContextMenu>(); dragPreviewGameObjects = new List <GameObject>(); cursorParent = new GameObject("Cursor"); mouseCursor = new MouseCursor(this, bmc); furnitureParent = new GameObject("Furniture Preview Sprites"); TimeManager.Instance.EveryFrameNotModal += (time) => Update(); }