diff options
| author | Andrew Lee <alee14498@gmail.com> | 2019-11-03 18:31:04 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@gmail.com> | 2019-11-03 18:31:04 -0500 |
| commit | e8dd5d4fd406e6e6b710cbe85309f6870bccc37a (patch) | |
| tree | db0e99cfdbefb1625d66d07631f43565ae8ff41f /Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs | |
| parent | 20b14c9a89821e6592bf25bed9329a5abe20495c (diff) | |
| download | Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.gz Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.tar.bz2 Unicity-e8dd5d4fd406e6e6b710cbe85309f6870bccc37a.zip | |
Remove everything
Diffstat (limited to 'Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs')
| -rw-r--r-- | Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs b/Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs deleted file mode 100644 index f5ccb87..0000000 --- a/Assets/Packages/Tayx/Graphy - Ultimate Stats Monitor/Scripts/Util/G_ExtensionMethods.cs +++ /dev/null @@ -1,67 +0,0 @@ -/* --------------------------------------- - * Author: Martin Pane (martintayx@gmail.com) (@tayx94) - * Collaborators: Lars Aalbertsen (@Rockylars) - * Project: Graphy - Ultimate Stats Monitor - * Date: 04-Jan-18 - * Studio: Tayx - * - * This project is released under the MIT license. - * Attribution is not required, but it is always welcomed! - * -------------------------------------*/ - -using UnityEngine; -using System.Collections.Generic; -using UnityEngine.UI; - -namespace Tayx.Graphy.Utils -{ - public static class G_ExtensionMethods - { - /* ----- TODO: ---------------------------- - * Add summaries to the functions. - * --------------------------------------*/ - - #region Methods -> Extension Methods - - /// <summary> - /// Functions as the SetActive function in the GameObject class, but for a list of them. - /// </summary> - /// <param name="gameObjects"> - /// List of GameObjects. - /// </param> - /// <param name="active"> - /// Wether to turn them on or off. - /// </param> - public static List<GameObject> SetAllActive(this List<GameObject> gameObjects, bool active) - { - foreach (var gameObj in gameObjects) - { - gameObj.SetActive(active); - } - - return gameObjects; - } - - public static List<Image> SetOneActive(this List<Image> images, int active) - { - for (int i = 0; i < images.Count; i++) - { - images[i].gameObject.SetActive(i == active); - } - - return images; - } - - public static List<Image> SetAllActive(this List<Image> images, bool active) - { - foreach (var image in images) - { - image.gameObject.SetActive(active); - } - - return images; - } - - #endregion - } -} |
