protected void SetupIndicator() { GameObject indicatorObject = GameObject.Instantiate(Resources.Load("[Indicator_Prefab]") as GameObject, Vector3.zero, Quaternion.identity); indicatorObject.transform.SetParent(transform); indicatorObject.transform.localPosition = Vector3.zero; indicator = indicatorObject.GetComponent <ObjectStateIndicator>(); indicator.Set_TeamOwner((int)ownedByTeam); }