Game Creation Mastering Development

How can I find the center position of two or more objects?

using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoveCameraBehind : MonoBehaviour { public GameObject camera; public List<GameObject> targets = new List<GameObject>(); public float cameraDistance = 10.0f; public bool behindMultipleTargets = false; public string cameraWarningMsgs = “”; public string targetsWarningMsgs = “”; // Use this for initialization void Start() { if (camera == null) { var […]