Assets.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. ------------------- Code Monkey -------------------
  3. Thank you for downloading the Code Monkey Utilities
  4. I hope you find them useful in your projects
  5. If you have any questions use the contact form
  6. Cheers!
  7. unitycodemonkey.com
  8. --------------------------------------------------
  9. */
  10. using System.Collections;
  11. using System.Collections.Generic;
  12. using UnityEngine;
  13. namespace CodeMonkey {
  14. /*
  15. * Global Asset references
  16. * Edit Asset references in the prefab CodeMonkey/Resources/CodeMonkeyAssets
  17. * */
  18. public class Assets : MonoBehaviour {
  19. // Internal instance reference
  20. private static Assets _i;
  21. // Instance reference
  22. public static Assets i {
  23. get {
  24. if (_i == null) _i = Instantiate(Resources.Load<Assets>("CodeMonkeyAssets"));
  25. return _i;
  26. }
  27. }
  28. // All references
  29. public Sprite s_White;
  30. public Sprite s_Circle;
  31. public Material m_White;
  32. }
  33. }