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;
    }
Exemple #2
0
 public void Start()
 {
     tmp = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterChangeActivePlayer>();
 }
Exemple #3
0
 public void OnEnable()
 {
     gmm   = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterManager>();
     gmcap = GameObject.FindWithTag("GameMaster").GetComponent <GameMasterChangeActivePlayer>();
     ActivateGMMode();
 }