Created
December 29, 2015 11:55
-
-
Save unitycoder/b261d4a27040a84e572f to your computer and use it in GitHub Desktop.
c# using alias directive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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