public void OnWallObjectClicked(WallObject wallObject) { addWallObjectToSelectedList(wallObject, true); // _objectsLibraryManager.HideWallEdition(false); _objectsLibraryManager.SetPanel(0); _objectsLibraryManager.UpdateUIWallTime(wallObject.Time); _objectsLibraryManager.SelectWallTab(WallsUtils.GetWallType(wallObject.WallObjectId), wallObject.WallObjectId); }
public static Sprite getWallSprite(string id) // TODO CamelCase { WallsUtils.Walltype wallType = WallsUtils.GetWallType(id); switch (wallType) { case WallsUtils.Walltype.WP: Sprite wallSprite; wallSprite = id.Length != 9 ? null : Resources.Load <Sprite>("PhotoWalls/" + id.Substring(4)); return(wallSprite); case WallsUtils.Walltype.WA: string[] splittedId = id.Split('.'); if (splittedId.Length <= 1) { return(null); } return(Resources.Load <Sprite>("assets/wall/dodge/" + splittedId[1])); default: return(null); } }
public void OnUpdatingWallId(string id) { WallsUtils.Walltype walltype = WallsUtils.GetWallType(id); _objectsLibraryManager.SelectWallTab(walltype, id); }