void Start() { _pegi = GameObject.FindGameObjectWithTag("Player").GetComponent <PegiController>(); _pegi.OnChangeOrbit += OnChangeOrbit; _camera = GetComponent <Camera>(); _camera.enabled = false; }
void Start() { _level = GameObject.FindObjectOfType <LevelManager>(); _camera = GetComponent <Camera>(); _camera.orthographicSize = _zoomNormal; _pegi = GameObject.FindGameObjectWithTag("Player").GetComponent <PegiController>(); _finalPos = new Vector3(); _pegi.OnChangeOrbit += OnChangeOrbit; GameObject.FindObjectOfType <LevelManager>().OnChangeAbductionState += OnChangeAbducingState; }
void Start() { _input = GetComponentInChildren <PegiInput>(); _animator = transform.Find("Graphic").GetComponentInChildren <Animator>(); _level = GameObject.FindObjectOfType <LevelManager>(); _pegi = GetComponent <PegiController>(); _pegi.OnShock += OnShock; _pegi.OnChangeOrbit += OnChangeOrbit; _graphic = GetComponentInChildren <SpriteRenderer>(); }
private void Start() { _beamObj.SetActive(false); _keyChallenge.gameObject.SetActive(false); _animator = _beamObj.GetComponentInChildren <Animator>(); _sprite = transform.Find("Graphic").GetComponent <SpriteRenderer>(); _input = GetComponent <PegiInput>(); _pegi = GetComponent <PegiController>(); GameObject.FindObjectOfType <LevelManager>().OnChangeAbductionState += OnChangeAbductionState; }
private void Start() { _orbit = GetComponent <OrbitMovement>(); GameObject.FindObjectOfType <LevelManager>().OnChangeAbductionState += OnChangeAbductionState; _pegi = GetComponent <PegiController>(); }
private void Start() { _pegi = FindObjectOfType <PegiController>(); _inventory = FindObjectOfType <InventoryController>(); _text.enabled = false; }