public void Start() { controlPanel.SetActive(false); cam.GetComponent <FollowCam>().gameObject.SetActive(false); lbtn.gameObject.SetActive(false); rbtn.gameObject.SetActive(false); time = 0; }
// Start is called before the first frame update private void Start() { lightCycle = Instantiate(cycleSource, new Vector3(15.0f, 0.0f, 15.0f), Quaternion.identity); lightCycle.GetComponent <Cycle>().gameControl = this; follows.GetComponent <FollowCam>().target = lightCycle; // isStart = false; // fasle로 고침 isRunning = false; gameOver.gameObject.SetActive(false); // intro.gameObject.SetActive(true); }
// Use this for initialization void Start() { maxCombo = 0; meters = 0; lineRenderer.positionCount = 2; // 2 points _spriteRenderer = GetComponent <SpriteRenderer>(); _spriteWidth = _spriteRenderer.sprite.rect.width; isAlive = true; _timerUIScript = TimerUI.GetComponent <TimerText>(); _changeLineRendererScript = lineRenderer.GetComponent <ChangeColor>(); _boxCollider = GetComponent <BoxCollider2D>(); _circleCollider = GetComponent <CircleCollider2D>(); _circleCollider.enabled = false; _boxCollider.enabled = true; SmokeParticleSystem.Stop(); followCam.GetComponent <FollowCam>(); }