void OnEnable() { gmm = gameObject.GetComponent <GameMasterManager>(); gmcnp = gameObject.GetComponentInChildren <GameMasterCreateNewPlayer>(); gmcap = gameObject.GetComponent <GameMasterChangeActivePlayer>(); gmsgmm = gameObject.GetComponent <GameMasterSwitchGMMode>(); fsf = GameObject.FindWithTag("FigurineSpawner").GetComponent <Figurine_SpawnFigurines>(); gmm.enabled = true; gmcnp.enabled = true; gmcap.enabled = true; gmsgmm.enabled = true; fsf.enabled = true; }
public void Start() { tmp = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterChangeActivePlayer>(); }
public void OnEnable() { gmm = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterManager>(); gmcap = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterChangeActivePlayer>(); ActivateGMMode(); }