Skip to content

Instantly share code, notes, and snippets.

@unitycoder
Created December 29, 2015 11:55
Show Gist options
  • Save unitycoder/b261d4a27040a84e572f to your computer and use it in GitHub Desktop.
Save unitycoder/b261d4a27040a84e572f to your computer and use it in GitHub Desktop.
c# using alias directive
using UnityEngine;
using System.Collections;
using System;
using Random = UnityEngine.Random; // now random is not conflicted, uses from unityengine
public class RandomAlias : MonoBehaviour
{
void Start ()
{
var r = Random.value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment