private void Update() { if (HasTargetInRange()) { _tank.TurretLookAt(_tank.Targets[0]); _tank.LookAt(_tank.Targets[0]); } }
// Update is called once per frame void Update() { if(tankai.Targets != null) { tankai.TurretLookAt(tankai.Targets[0]); } }
private void Update() { if (m_Tank.HasTargetInRange) { Vector3 target = m_Tank.Targets[0]; m_Tank.TurretLookAt(target); } }