void Start() { m_state = State.Right; m_spriteManagerScript = m_spriteManager.GetComponent <SpriteManagerScript>(); m_camerasScript = m_camerasManager.GetComponent <CamerasScript>(); transform.position = Constants.BottomPosition[m_indexMiddle]; InitAI(); UpdateRotation(); }
void Start() { m_camerasScript = m_camerasManager.GetComponent <CamerasScript>(); m_guiStyle = new GUIStyle(); m_guiStyle.font = m_font; m_guiStyle.fontSize = 30; m_p1Script = m_player1.GetComponent <PlayerScript>(); m_p2Script = m_player2.GetComponent <PlayerScript>(); m_light = m_walls.GetComponent <Light>(); }
void Start() { m_camerasScript = m_cameraManager.GetComponent <CamerasScript>(); m_source = GetComponent <AudioSource>(); m_source.PlayOneShot(m_music, 1f); m_p1Script = m_player1.GetComponent <PlayerScript>(); m_p2Script = m_player2.GetComponent <PlayerScript>(); InitPlayers(); }