// Update is called once per frame void Update() { teamColor = turnMaker.GetColor(); }
// Use this for initialization void Start() { turnMaker = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <TurnMaker>(); teamColor = turnMaker.GetColor(); }