using UnityEngine; using System.Collections; using System.Collections.Generic; public class SelectedObjs { public static List gameObjs = new List();//把可单选的对象保存在gameObjs数组里 public static GameObject selectedObj = null;//记录单选选中的游戏对象(除消防员以外的所有游戏对象) public static List characters = new List();//把可框选的对象(消防员)保存在characters数组里 public static List selectedCharacters = new List();//记录 单选/框选/组选 选中的消防员 public static List rolePlays = new List();//总,支,大,参谋等代表各自的角色对象的可选数组 public static GameObject selectedRolePlay = null;//记录总,支,大,参谋等代表各自的选中角色(默认选中) public static void ResertSelectObjs() { gameObjs.Clear(); selectedObj = null; characters.Clear(); selectedCharacters.Clear(); rolePlays.Clear(); selectedRolePlay = null; } }