Skip to content

Instantly share code, notes, and snippets.

using System;
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities.Editor;
using UnityEditor;
using UnityEngine;
using Random = System.Random;
/// <summary>
/// Draw the properties with a darker background and
/// borders, optionally.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Sirenix.OdinInspector;
using Sirenix.Utilities;
using UnityEngine;
#if UNITY_EDITOR
using Sirenix.OdinInspector.Editor;
using Sirenix.Utilities.Editor;
@zaun
zaun / Bullet.cs
Created February 28, 2017 04:47
Unity3d Smart Object Pooling
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Bullet : PoolObject {
Rigidbody myRigidbody;
public override void OnAwake() {
if (myRigidbody == null) {
myRigidbody = GetComponent<Rigidbody> ();
@benui-dev
benui-dev / CoroutineSyncer.cs
Created March 11, 2014 05:28
Helper singleton for running multiple coroutines simultaneously, and then waiting for all of them to finish.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class CoroutineSyncer : MonoBehaviour
{
static CoroutineSyncer m_instance;
public static CoroutineSyncer Instance
{
get