void Awake() { USM = UpgradeShopManager.Instance(); SDM = SoundManager.Instance(); gameObject.AddComponent <AudioSource>().clip = SDM.TurretFire[turretIndex].clip; gameObject.GetComponent <AudioSource>().playOnAwake = false; }
public static UpgradeShopManager Instance() { if (instance == null) { instance = FindObjectOfType <UpgradeShopManager>(); } return(instance); }
void Start() { InitiatePlayGames(); loadData = ""; DontDestroyOnLoad(gameObject); bIsGuest = false; USM = UpgradeShopManager.Instance(); }