天津23维预案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

39 lines
866 B

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class XiaoFangYuanToShiNei : MonoBehaviour {
// Use this for initialization
public List<GameObject> AllMembers = new List<GameObject>();//一同进入室内的人员
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public bool toShiNei()
{
List<GameObject> selectedObjs = InputManager.Instance_.GetSelectedCharacters();
CopyTo(selectedObjs, AllMembers);
return true;
}
private void CopyTo(List<GameObject> arry1, List<GameObject> arry2)
{
arry2.Clear();
foreach (GameObject obj in arry1)
{
if (obj.tag== "Player")//如果是消防员
{
arry2.Add(obj);
}
}
}
}