Skip to content

Instantly share code, notes, and snippets.

@farukcan
farukcan / NextBackList.cs
Created January 15, 2022 16:07
Unity Code for enable next one of child of the game object
// Author: github.com/farukcan
// Depends to Child Selector : https://gist.github.com/farukcan/cb7865963f59d4e3e6451a11dfcc0f3a
// Usage :
// list.Next()
// list.Back();
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@farukcan
farukcan / ChildSelector.cs
Created January 15, 2022 16:00
Unity GameObject Child Selector
// Author: github.com/farukcan
// Usage :
// selector.Select("Object 1");
// selector.SelectRandom();
// selector.OpenSelfAndSelect("Object 1");
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
@farukcan
farukcan / AxisExtension.cs
Created January 14, 2022 20:13
Axis Extension For Unity Engine To Handle Axises Quickly
// Author: github.com/farukcan
// Usage:
// Get vector - AxisExtension.GetVector(Axis.LEFT)
// Get direction vector relative to the object - AxisExtension.GetVector(transform,Axis.LEFT)
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public static class AxisExtension
@farukcan
farukcan / AdvancedTag.cs
Created January 14, 2022 20:05
Advanced Multiple Tagging instead of Unity's
// Author : github.com/farukcan
// Usage : AdvancedTag.GetTagList("Player")
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AdvancedTag : MonoBehaviour
{
private static Dictionary<string, List<GameObject>> dictionary = new Dictionary<string, List<GameObject>>();