Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 void Start()
 {
     Fielders = GameObject.FindGameObjectsWithTag("Fielder");
     Pitcher  = GameObject.FindWithTag("Pitcher").GetComponent <PitcherController>();
     Batter   = GameObject.FindWithTag("Batter").GetComponent <BatterController>();
 }