void Start() { getTrenchManager = trenchManagerGO.GetComponent <trenchManager>(); target = getTrenchManager.target; activeLookAt = false; baseRotation = transform.rotation; }
void Start() { stopShoot = _trenchManager.GetComponent <trenchManager>(); activeDeadBool = trenchDead.GetComponent <trenchExplode>(); MAGdead = particleSystem.GetComponent <shootMAG>(); Health = 100; bullet = GameObject.Find("BulletM4a1"); GODead = false; }