コード例 #1
0
 void Start()
 {
     if (!isTutorial)
     {
         lum = GameObject.Find("Level Up Manager").GetComponent <LevelUpManager>();
         lgm = GameObject.Find("Level Generation Manager").GetComponent <LevelGenerationManager>();
     }
     currentMovementSpeed = firstMovementSpeed;
 }
コード例 #2
0
 private void Start()
 {
     InitializeBubble();
     manager         = GameObject.FindGameObjectWithTag("LevelGenerationManager").GetComponent <LevelGenerationManager>();
     crushingManager = manager.GetComponent <CrushingManager>();
     if (!isGhost)
     {
         manager.allBubbles.Add(gameObject);
     }
 }
コード例 #3
0
    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);
    }
コード例 #4
0
 private void Awake()
 {
     instance = this;
 }
コード例 #5
0
 /// <summary>
 /// Initialize the level
 /// </summary>
 public void Initialize()
 {
     levelGenerationManager = GetComponent <LevelGenerationManager>();
     rooms = levelGenerationManager.rooms;
 }
コード例 #6
0
 void Start()
 {
     lgm = GameObject.Find("Level Generation Manager").GetComponent <LevelGenerationManager>();
 }