public SimpleTimerView() { InitializeComponent(); this.blinkManager = new BlinkManager(); this.blinkManager.Blink += BlinkManager_Blink; this.tibInput = new TimeInputBox(); this.InitialiseTxtInput(); this.timer = new Timer() { Interval = 1000, }; this.timer.Tick += Timer_Tick; this.messageTimer = new Timer(); this.messageTimer.Tick += MessageTimer_Tick; this.stopped = true; this.DisplayState = DisplayState.Timer; this.TimerState = TimerState.Stopped; this.ApplySettings(SimpleTimerSettings.Default); this.SizeChanged += (_, __) => this.lblTimer.MaximumSize = new Size(this.Width - 30, 0); }
void Start() { isRadarOn = true; canControl = true; //rb = GetComponent<Rigidbody>(); var radar = FindObjectOfType <Rotate>(); radarRay = radar.gameObject; camShake = FindObjectOfType <CameraShake>(); lvlManager = FindObjectOfType <LevelManager>(); menuManager = FindObjectOfType <MenuManager>(); blinkManager = FindObjectOfType <BlinkManager>(); audioManager = FindObjectOfType <AudioManager>(); timerManager = FindObjectOfType <TimerManager>(); shield = GetComponent <BoosterShieldV2>(); magnet = FindObjectOfType <MagnetZone>(); turbo = FindObjectOfType <BoosterTurbov2>(); direction = Vector3.up; nextTimeblink = Time.time; nextTimeblinkSunken = Time.time; }
// Start is called before the first frame update new void Start() { base.Start(); blinkManager = FindObjectOfType <BlinkManager>(); lvlManager = FindObjectOfType <LevelManager>(); }
// Start is called before the first frame update void Start() { imgObj = GetComponent <Image>(); var blinkObj = GameObject.Find("BlinkManager"); // マネージャーを取得 blink = blinkObj.GetComponent <BlinkManager>(); }
// Start is called before the first frame update void Start() { //genMng = FindObjectOfType<GeneratorManager>(); bm = FindObjectOfType <BlinkManager>(); am = FindObjectOfType <AudioManager>(); rend = GetComponent <SpriteRenderer>(); rend.sprite = spriteYellow; spriteColor = rend.color; }
// Start is called before the first frame update void Start() { bm = FindObjectOfType <BlinkManager>(); rend = GetComponent <SpriteRenderer>(); rend.sprite = spriteWhite; ignoreActivation = false; // for the blinking animation spriteColor = rend.color; }
Transform _selection; // to deactivate generator // Start is called before the first frame update void Start() { bm = FindObjectOfType <BlinkManager>(); thePlayer = FindObjectOfType <PlayerController>(); // setting the line renderer rayLineRenderer = GetComponent <LineRenderer>(); Vector3[] initRayPositions = new Vector3[2] { Vector3.zero, Vector3.zero }; rayLineRenderer.SetPositions(initRayPositions); rayLineRenderer.SetWidth(rayWidth, rayWidth); }
// Start is called before the first frame update void Start() { rend = GetComponent <SpriteRenderer>(); blinkManager = FindObjectOfType <BlinkManager>(); lifeTime = (isQuickFading) ? blinkManager.blinkLifeTimeShort : blinkManager.blinkLifeTimeLong; spriteColor = rend.color; rend.color = new Color(spriteColor.r, spriteColor.g, spriteColor.b, 0); //Fade(false, lifeTime); poolManager = FindObjectOfType <PoolManager>(); initParent = poolManager.poolHolder; }
void Start() { mm = FindObjectOfType <MenuManager>(); bm = FindObjectOfType <BlinkManager>(); chatMng = FindObjectOfType <ChatManager>(); am = FindObjectOfType <AudioManager>(); // setting the line renderer rayLineRenderer = GetComponent <LineRenderer>(); Vector3[] initRayPositions = new Vector3[2] { Vector3.zero, Vector3.zero }; rayLineRenderer.SetPositions(initRayPositions); rayLineRenderer.SetWidth(rayWidth, rayWidth); }
// Start is called before the first frame update void Start() { bm = FindObjectOfType <BlinkManager>(); //nextTimeBlink = Time.time; thePlayer = FindObjectOfType <PlayerController>(); camShake = FindObjectOfType <CameraShake>(); // setting the line renderer rayLineRenderer = GetComponent <LineRenderer>(); Vector3[] initRayPositions = new Vector3[2] { Vector3.zero, Vector3.zero }; rayLineRenderer.SetPositions(initRayPositions); rayLineRenderer.SetWidth(rayWidth, rayWidth); showBlinksDst += rayLength; }
// Start is called before the first frame update public void Start() { AssignRBs(); rb = GetComponent <Rigidbody>(); bm = FindObjectOfType <BlinkManager>(); lvlManager = FindObjectOfType <LevelManager>(); camShake = FindObjectOfType <CameraShake>(); audioManager = FindObjectOfType <AudioManager>(); blinkType = AssignIcon(); bm.CreateBlinkFollow(blinkType[0], transform.position, gameObject); thePlayer = null; if (gameObject.tag == "sunken") { initDrag = GetComponent <Rigidbody>().drag; thePlayer = FindObjectOfType <PlayerController>(); } }
// Start is called before the first frame update void Start() { bm = FindObjectOfType <BlinkManager>(); nextTimeBlink = Time.time; }
void Awake() { Instance = this; _Block = new MaterialPropertyBlock(); }