private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
         // DontDestroyOnLoad(this.gameObject);
     }
     else
     {
         DestroyImmediate(this.gameObject);
     }
 }
    public void InitializeMyThings(AnimalCentralCommand argbh, HotelFloorsManager argfloors, CameraPov argCam, InteractionCentral argBellhopCocation, DeliverySessionManager argSessionMNGR, StoryTextGenerator argStoryTExtGen)

    {
        _sessionMNGR = argSessionMNGR;
        _sessionMNGR.Init();
        _BellhopPos    = argBellhopCocation;
        _bellHop       = argbh;
        _floorsmngr    = argfloors;
        _cam           = argCam;
        _ElevatorDoors = ElevatorDoorsMasterControl.Instance;

        _StoryTextGen = argStoryTExtGen;
        _StoryTextGen.InitMyRefs(_floorsmngr);
    }
Exemple #3
0
    private void Start()
    {
        _gs = GameSettings.Instance;
        if (_gs == null)
        {
            Debug.LogError("NumPadCTRL: no gm in scene!");
        }
        _ElevatorDoorsCTRL = ElevatorDoorsMasterControl.Instance;
        if (_ElevatorDoorsCTRL == null)
        {
            Debug.LogError("no static elevator door ctrl in scene!");
        }
        _eventManager = BellHopGameEventManager.Instance;
        if (_eventManager == null)
        {
            Debug.LogError("no static game Event manger in scene!");
        }


        // ElevatorWall.SetActive(false);
        // BunnyHop.SetActive(false);
        ButtonsCanvas.SetActive(false);
    }