private void Awake()
 {
     controls = new PlayerControls();
     wm       = FindObjectOfType <WaveManager>();
     guyM     = GetComponent <GuyMovement>();
     gs       = GetComponent <GuyShooting>();
     anim     = GetComponent <Animator>();
 }
Beispiel #2
0
 // 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>();
 }
Beispiel #4
0
 // Start is called before the first frame update
 void Start()
 {
     dialogue.SetActive(false);
     mover   = GetComponent <GuyMovement>();
     spawned = false;
 }