Ejemplo n.º 1
0
 public void AddMinionSpawner(MinionSpawnManager minionSpawner)
 {
     m_minionSpawners.Add(minionSpawner);
 }
    public override void OnStartServer()
    {
        Instance = this;

        minionContainer = GameObject.Find("MinionCollector").transform;
        //for (int i = 0; i < spawnPointCollector.childCount; ++i)
        //{
        //    Transform spawn = spawnPointCollector.GetChild(i);
        //    GameObject robot = GameObject.Instantiate(EnemyPrefab, spawn.transform.position, Quaternion.identity) as GameObject;
        //    robot.transform.SetParent(spawn);
        //    robot.GetComponent<MinionController>().enabled = true;
        //    robot.GetComponent<PatrolWaypoints>().path = spawn.GetComponentInChildren<WaypointPath>();
        //    NetworkServer.Spawn(robot);
        //}
    }