private void Awake() { controls = new PlayerControls(); wm = FindObjectOfType <WaveManager>(); guyM = GetComponent <GuyMovement>(); gs = GetComponent <GuyShooting>(); anim = GetComponent <Animator>(); }
// Start is called before the first frame update void Start() { _mover = GetComponent <GuyMovement>(); _targetTransform = camConfigs[0].cameraPos; foreach (CameraConfig i in camConfigs) { Camera cam = i.cameraPos.GetComponent <Camera>(); if (cam != null) { cam.enabled = false; } } }
// Start is called before the first frame update void Start() { mover = GetComponent <GuyMovement>(); }
// Start is called before the first frame update void Start() { dialogue.SetActive(false); mover = GetComponent <GuyMovement>(); spawned = false; }