private void Awake() { //upper_2 = Global.TileMaps.GetTileMap(Global.TileMaps.BASE_3); //upper = Global.TileMaps.GetTileMap(Global.TileMaps.BASE_2); //upper_2 = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER_2); upper = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER); baseTiles.Init(); upper.SetTile(upper.WorldToCell(transform.position), baseTiles.GetMainTile()); actionWindow = Global.Component.GetActionWindowController(); terminalController = Global.Component.GetTerminalController(); eventController = Global.Component.GetEventController(); // USER MODE FOR TESTING currentMemory = memoryContents.Where(i => i.userMode == CommandDB.UserMode.User).FirstOrDefault(); InitAllDocs(); }
// Start is called before the first frame update //private Vector3 mousePos; void Start() { caseTileMap = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER); //caseTilemap_door = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER_2); eventController = Global.Component.GetEventController(); casePanelController = Global.Component.GetCasePanelController(); baseTiles.Init(); caseTileMap.SetTile(caseTileMap.WorldToCell(transform.position), baseTiles.GetMainTile()); //caseTilemap_door.SetTile(caseTilemap_door.WorldToCell(transform.position), caseClosed); }
void Awake() { controller = Global.Component.GetController(); baseTiles.Init(); upper = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER); upper2 = Global.TileMaps.GetTileMap(Global.TileMaps.UPPER_2); upper.SetTile(upper.WorldToCell(transform.position), baseTiles.GetMainTile()); upper2.SetTile(upper2.WorldToCell(transform.position), baseTiles.GetSecondaryTile()); tileAnim.Init(this, upper2); }