// Start is called before the first frame update void Start() { currentHP = health; this.GetComponent <NavMeshAgent>().speed = speed; player = FindObjectOfType <Character_Control>(); spawner = FindObjectOfType <Spawn_Controller>(); }
// Use this for initialization void Start() { if (spawn_controller_inst != null) { Destroy(this.gameObject); } else { spawn_controller_inst = this; } spawn_points = FindObjectsOfType <Spawn_Point>(); all_players = FindObjectsOfType <Vehicle_Control_Holder>(); Spawn_All_Players(); }
// Start is called before the first frame update void Start() { spawn_Controller = FindObjectOfType <Spawn_Controller>(); display = gameObject.GetComponent <TextMeshProUGUI>(); }