//-------------------------------------------------------------------------------------- //-------------------------------------------------------------------------------------- private void Update() { if (!getObj) { tempPlayerObj = GameObject.Find("PlayerStats(Clone)").GetComponent <Serializer>(); if (tempPlayerObj != null) { getObj = true; } } if (!getScreen) { tempScreenManager = GameObject.Find("ScreenManager").GetComponent <ScreenManagerScript>(); if (tempScreenManager != null) { getScreen = true; } } if (!getLog) { tempLogScript = GameObject.Find("LogManager").GetComponent <LogScript>(); if (tempLogScript != null) { getLog = true; } } }
void Start() { log = GetComponent <LogScript>(); _out = GetComponent <OutputScript>(); log.AddEvent("====================== Progress Log ======================="); _out.AddEvent("======================= Output Log ========================"); }
// Use this for initialization void Start() { logPanel = GameObject.Find("LogPanel"); ls = logPanel.GetComponent <LogScript> (); stage = GameObject.Find("Stage"); ss = stage.GetComponent <StageScript> (); }
// Use this for initialization void Start() { GameObject notificationLog = GameObject.FindWithTag("Log"); //log = notificationLog.GetComponent<NotificationLog>(); log = notificationLog.GetComponent<LogScript>(); currentNotification = GetComponent<Text>(); DontDestroyOnLoad (currentNotification); }
private void Start() { GameObject player = GameObject.FindWithTag("Player"); playerC = player.GetComponent<PlayerController>(); weapon_backpack_controller = player.GetComponent<WeaponBackpackController>(); GameObject log = GameObject.FindWithTag("Log"); notification_log = log.GetComponent<LogScript>(); }
void Start() { tex = new Texture2D(width, height); GetComponent <Renderer>().material.mainTexture = tex; log = GameObject.Find("LogWindow").GetComponent <LogScript>(); pinchSlider = GameObject.Find("PinchSlider"); pinchSliderHor = GameObject.Find("PinchSliderHor"); handPlane = GameObject.Find("HandPlane"); }
//private float scrollSize; // FIX SCROLL SIZE SOMEHOW void Start() { GameObject SB = GameObject.FindWithTag("Scroll"); GameObject Log = GameObject.FindWithTag("Log"); scroll = SB.GetComponent<Scrollbar>(); log = Log.GetComponent<LogScript>(); scrollValue = 1f; // very arbitrary value... scroll.size = 1f; offset = 0; // used for division by 0 purposes }
// Use this for initialization void Start() { StarSystem = GetComponent <StarSystem>(); menuObj = GetComponent <PrefabManager>().GetPrefab("Menu"); menuObj.GetComponentInChildren <MenuController>().ButtonObj = GetComponent <PrefabManager>().GetPrefab("Button"); menuObj.GetComponentInChildren <MenuController>().TextObj = GetComponent <PrefabManager>().GetPrefab("Text"); PageMenuObj = GetComponent <PrefabManager>().GetPrefab("PageMenu"); PageMenuObj.GetComponentInChildren <PageMenu>().ButtonObj = GetComponent <PrefabManager>().GetPrefab("Button"); PageMenuObj.GetComponentInChildren <MenuController>().TextObj = GetComponent <PrefabManager>().GetPrefab("Text"); TimeController = GetComponent <TimeController>(); Logger = StarSystem.Logger; //Cursor = StarSystem.Cursor.GetComponent<CursorController>(); }
// Use this for initialization void Start() { resources = GameObject.Find("Resources"); rm = resources.GetComponent <ResourcesManager> (); turns = GameObject.Find("Turns"); ts = turns.GetComponent <TurnsScript> (); //earthPanel = GameObject.Find ("EarthPanel"); //es = earthPanel.GetComponent<ElementScript> (); logPanel = GameObject.Find("LogPanel"); ls = logPanel.GetComponent <LogScript> (); stage = GameObject.Find("Stage"); ss = stage.GetComponent <StageScript> (); buildingSelection = -1; }
// Use this for initialization void Start() { CreateAlert(AlertType.DEBUT); audioManager = GameObject.FindGameObjectWithTag("AudioManager").GetComponent<AudioManager>(); audioManager.ChangeMusic(1); //GameObject.FindGameObjectWithTag("Canvas").GetComponent<CanvasScript>().SetInGameMode(); gameInfos = GameObject.FindGameObjectWithTag("GameInfos").GetComponent<GameInfosScript>(); client = GameObject.FindGameObjectWithTag("Client").GetComponent<ClientScript>(); client.gameManager = this; complex.InitializeComplex(gameInfos.gridCode, gameInfos.players, gameInfos.nbJoueursTotal); actualPlayer = complex.players[gameInfos.idJoueur]; LoadEvents(); log = GameObject.FindGameObjectWithTag("Log").GetComponent<LogScript>(); log.transform.SetParent(logPanel.transform); if (gameInfos.players[gameInfos.idJoueur].Role == Role.GUARDIAN) revealGuardianButton.gameObject.SetActive(true); else revealGuardianButton.gameObject.SetActive(false); WaitForFirstRoomToLookDirection(1, 1, 1, 1); }
void Start() { log = GetComponent <LogScript>(); _out = GetComponent <OutputScript>(); }
private void Start() { camera = GameObject.FindGameObjectWithTag("MainCamera"); //Find the camera CamControl = camera.GetComponent<CameraController>(); hud = GameObject.FindGameObjectWithTag("HUD"); player = GameObject.FindGameObjectWithTag("Player"); GameObject notificationLog = GameObject.FindWithTag("Log"); Log = notificationLog.GetComponent<LogScript>(); movement_controller = GetComponent<MovementController>(); weapon_backpack_controller = GetComponent<WeaponBackpackController>(); healthController = GetComponent<HealthController>(); RB = GetComponent<Rigidbody>(); Flashlight = GetComponentInChildren<FlashlightController>(); //Attach the flashlight Particles = GetComponentsInChildren<ParticleSystem>(); //Attach the powerfists SetPowerfists(false); Drop = false; TrackFace = true; this.toggle_movement = false; ScreenSize = new Vector3(Screen.width, Screen.height); doubleTapCountdown = 0; //doubleTapCounts = new int[4]; doubleTapCount = 0; //resetDoubleTapCount(); dashDirection = new Vector2(0, 0); //dashCooldownCountdown = 0; this.isDashing = false; dashForceCurrent = 1; dashStartTime = 0; isStunned = false; stunCountdown = 0; SetStunElectricity(false); //currentFloor = 0; dialogueLevel = 0; deepestLevelVisited = 0; currLevel = 0; level = 0; defense = 1f; }