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