示例#1
0
 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>();
 }
示例#2
0
 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();
 }