public void LoadResources() { player = _PatorlFactory.LoadPlayer(); //导入资源的时候为了巡逻兵有动作 patrols = _PatorlFactory.LoadPatrol(); for (int i = 0; i < patrols.Count; i++) { _PatrolActionManager.GoPatrol(patrols[i]); } }
public void LoadResources() { player = _PatorlFactory.LoadPlayer(); patrols = _PatorlFactory.LoadPatrol(); for (int i = 0; i < patrols.Count; i++) { _PatrolActionManager.GoPatrol(patrols[i]); } GameObject.Instantiate(Resources.Load("Prefabs/Plane"), new Vector3(0, 0, 0), Quaternion.identity); }