using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
public class GameBuilder : TNet.TNBehaviour
{
public void SpawnPlayer()
{
Debug.Log("Spawning Player");
FactionName f = TNet.TNManager.player.Get<FactionName>("PlayerFaction");
string apath = fDB.GetFactionPath(f);
TNet.TNManager.Instantiate(channelID, "GeneratePlayerCore", apath, true);
}
[TNet.RCC]
public static GameObject GeneratePlayerCore(GameObject prefab)
{
Debug.Log("GeneratePlayerCore");
GameObject _mainCore = Instantiate(prefab) as GameObject;
Vector3 position = GetSpawnPoint();
_mainCore.transform.localPosition = position;
GamePlay.game.myCore = _mainCore;
Controller.instance.FocusMainCore();
return _mainCore;
}
.....
}