Skip to content

Instantly share code, notes, and snippets.

View feranmii's full-sized avatar

Feranmi Oladosu feranmii

View GitHub Profile
@feranmii
feranmii / SceneSwitcherToolbarOverlay.cs
Created July 29, 2022 19:16 — forked from alexanderameye/SceneSwitcherToolbarOverlay.cs
A small scene switcher utility for Unity
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.Overlays;
using UnityEditor.SceneManagement;
using UnityEditor.Toolbars;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UIElements;
@feranmii
feranmii / UIGetName.cs
Created April 7, 2020 11:50
Simple Class that assigns the name of the parent GameObject to a UI TextField
using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
/// <summary>
/// Simple Class that assigns the name of the parent GameObject to a UI TextField
/// </summary>
//Unitytips by @theferfactor
@feranmii
feranmii / PlayerMovement.cs
Last active March 13, 2023 22:43
Simple Top Down Controller
using System;
using System.Collections;
using System.Collections.Generic;
using MoreMountains.Feedbacks;
using UnityEngine;
[RequireComponent(typeof(Rigidbody))]
public class PlayerMovement : MonoBehaviour
{
private float hor;
using UnityEditor;
using UnityEngine;
/// <summary>
/// This is a simple Editor Tool to create a divider for the Editor Hierarchy.
/// You can do this using ALT + D Keys
/// You can also go to Tools -> Hierarchy Divider
/// </summary>
public class HierarchyDividerEditor : ScriptableWizard
{
using UnityEngine;
public class Actor : PhysicsObject, IDamage
{
[Header("Stats")]
[SerializeField] protected int jumpCount;
[SerializeField] private int health;
[SerializeField] protected float jumpTakeOffSpeed;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PhysicsObject : MonoBehaviour
{
public float minGroundNormalY = .65f;
public float gravityModifier = 1f;
protected Vector2 targetVelocity;