public static void Initialize() { m_ballFactory = GameObject.FindObjectOfType <BallFactory>(); m_cameraController = GameObject.FindObjectOfType <CameraController>(); m_messageCenter = GameObject.FindObjectOfType <MessageCenter>(); m_prefabs = GameObject.FindObjectOfType <Prefabs>(); m_sfxPlayer = GameObject.FindObjectOfType <SfxPlayer>(); }
public static void Initialize() { m_cameraController = GameObject.FindObjectOfType <CameraController>(); m_gameSettings = GameObject.FindObjectOfType <GameSettings>(); m_messageCenter = GameObject.FindObjectOfType <MessageCenter>(); m_prefabs = GameObject.FindObjectOfType <Prefabs>(); m_savegameManager = GameObject.FindObjectOfType <SavegameManager>(); m_sfxPlayer = GameObject.FindObjectOfType <SfxPlayer>(); m_soundManager = GameObject.FindObjectOfType <SoundManager>(); }
void Start() { m_sfxPlayer = GameObject.FindObjectOfType <SfxPlayer>(); RegisterMessages(); }