// Use this for initialization void Start() { swapper = GameObject.FindGameObjectWithTag("Pitch").GetComponent<SwapperScript>(); plattrib = transform.parent.GetComponent<PlayerAttribute>(); if(plattrib!=null){ leftTeam = plattrib.leftteam; StatPanel = GameObject.FindGameObjectWithTag("PlayerPanels"); } btn = GetComponent<Button>(); btn.onClick.AddListener(() => { showPanel(); }); }
// Use this for initialization void Start() { swapper = GameObject.FindGameObjectWithTag("Pitch").GetComponent <SwapperScript>(); plattrib = transform.parent.GetComponent <PlayerAttribute>(); if (plattrib != null) { leftTeam = plattrib.leftteam; StatPanel = GameObject.FindGameObjectWithTag("PlayerPanels"); } btn = GetComponent <Button>(); btn.onClick.AddListener(() => { showPanel(); }); }
// Use this for initialization void Start() { camera = Camera.main; dragtime = 0f; swapscr = GameObject.FindGameObjectWithTag("Pitch").GetComponent<SwapperScript>(); }
// Use this for initialization void Start() { camera = Camera.main; dragtime = 0f; swapscr = GameObject.FindGameObjectWithTag("Pitch").GetComponent <SwapperScript>(); }