void Start() { GM = GameObject.FindWithTag("GameManager").GetComponent <GameManager>(); Batter = GM.GetBatter(); Pitcher = GM.GetPitcher(); PositionToMoveTo = GM.GetPitchTarget(); Fielders = GM.Fielders; GM.SetBaseball(gameObject); Destroy(gameObject, 10); }
void Start() { Fielders = GameObject.FindGameObjectsWithTag("Fielder"); Pitcher = GameObject.FindWithTag("Pitcher").GetComponent <PitcherController>(); Batter = GameObject.FindWithTag("Batter").GetComponent <BatterController>(); }