Created
October 21, 2014 23:07
-
-
Save JonRurka/fe3630330adeea6c40a9 to your computer and use it in GitHub Desktop.
This file contains 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
class SelectedUnits : Monobehavior | |
{ | |
public List<Transform> selectedList; | |
private Static SelectedUnits _instance; | |
public Static SelectedUnits Instance { get { return _instance;}} | |
public void AddTransform(Transform trans) | |
{ | |
selectedList.Add(trans); | |
} | |
} | |
You can then add any transform to that list by calling SelectedUnits.Instance.AddTransform(theTransform) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment