// Start is called before the first frame update void Start() { agent = GetComponent <NavMeshAgent>(); ECS = GetComponent <EneCanonShot>(); agent.autoBraking = false; GotoNextPoint(); }
// Start is called before the first frame update void Start() { ECS1 = Enemy1.GetComponent <EneCanonShot>(); if (ECS1 == null) { Debug.LogError("NotECS"); } }