Skip to content

Instantly share code, notes, and snippets.

View rini94's full-sized avatar
๐Ÿ™ƒ

Rini Vijayakumari rini94

๐Ÿ™ƒ
  • India
View GitHub Profile
@rini94
rini94 / ObjectPooler(PoolWithParentObjects).cs
Last active August 31, 2022 15:08
Script for a common object pooler in Unity where each pool is created under a parent object. Using tags as identifiers.
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class ObjectPoolItem {
public GameObject objectToPool;
public int poolSize;
public GameObject parentObject;
public bool shouldExpand;
@rini94
rini94 / ObjectPooler(SingleObjectPool).cs
Last active July 29, 2018 17:52
Script for a common object pooler in Unity where the entire pool is kept as a single list.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public class ObjectPoolItem {
public GameObject objectToPool;
public int poolSize;
public bool shouldExpand;
@rini94
rini94 / ApiFunctions.java
Last active April 5, 2018 19:56
Get connection and data functions from url for external API based apps.
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
public class ApiFunctions {
@rini94
rini94 / NumberWizard.cs
Last active February 24, 2018 10:24
C# script for number wizard unity console game.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MainScript : MonoBehaviour {
int min;
int max;
int selNum;
bool maxSelected = false;