using UnityEngine; using System.Collections.Generic; public class SingleRTSPlayer : MonoBehaviour {public RTSSinglePlayerDefinition rtsplayerInfo;public static PlayerRtsGameSetupDefinition playerRtsDfault;void Start(){rtsplayerInfo.Numberof.acivePlayerRTsUnits.Add (this.gameObject);}void OnDestroyGamePlayerRtsObjects(){rtsplayerInfo.ActiveUnits.Remove (this.rtsSingleGameObject);}}