void Start() { if (!isTutorial) { lum = GameObject.Find("Level Up Manager").GetComponent <LevelUpManager>(); lgm = GameObject.Find("Level Generation Manager").GetComponent <LevelGenerationManager>(); } currentMovementSpeed = firstMovementSpeed; }
private void Start() { InitializeBubble(); manager = GameObject.FindGameObjectWithTag("LevelGenerationManager").GetComponent <LevelGenerationManager>(); crushingManager = manager.GetComponent <CrushingManager>(); if (!isGhost) { manager.allBubbles.Add(gameObject); } }
void Awake() { m_LevelGenerationManager = GameObject.Find("GameManager").GetComponent <LevelGenerationManager>(); m_interactionPrompt = GameObject.FindGameObjectWithTag("InteractionPrompt"); m_levelHeader = GameObject.Find("/Canvas/Lift UI/Panel/Level Panel/Level Header"); m_levelText = GameObject.Find("/Canvas/Lift UI/Panel/Level Panel/Level Text").GetComponent <Text>(); m_costHeader = GameObject.Find("/Canvas/Lift UI/Panel/Cost Panel/Cost Header"); m_costText = GameObject.Find("/Canvas/Lift UI/Panel/Cost Panel/Cost Text").GetComponent <Text>(); m_LiftUI = GameObject.Find("/Canvas/Lift UI"); m_warning = GameObject.Find("/Canvas/Lift UI/Panel/Warning"); m_Tutorial = GameObject.Find("/Canvas/Lift UI/Panel/Tutorial"); m_player = GameObject.Find("Player"); m_playerBaseAbilities = m_player.GetComponent <PlayerBaseAbilities>(); m_interactionPrompt.SetActive(false); HideWarning(); m_LiftUI.SetActive(false); }
private void Awake() { instance = this; }
/// <summary> /// Initialize the level /// </summary> public void Initialize() { levelGenerationManager = GetComponent <LevelGenerationManager>(); rooms = levelGenerationManager.rooms; }
void Start() { lgm = GameObject.Find("Level Generation Manager").GetComponent <LevelGenerationManager>(); }