static void Main(string[] args) { ArrayList zoo = new ArrayList(); GatherInput inputGatherer = new GatherInput(zoo); inputGatherer.GetUserInput(); foreach (ITalkable thing in zoo) { Printout(thing); } outFile.FileClose(); inFile.FileRead(); inFile.FileClose(); FileInput indata = new FileInput("animals.txt"); string line; while ((line = indata.FileReadLine()) != null) { Console.WriteLine(line); } }
// Use this for initialization void Awake() { planet = GameObject.FindGameObjectWithTag(Tags.planet); player = GameObject.FindGameObjectWithTag(Tags.player); gatherInput = GetComponent <GatherInput>(); spin = GetComponent <PlanetSpin>(); spaceStats = GameObject.FindGameObjectWithTag(Tags.space).GetComponent <SpaceStats>(); defaultSpaceSpeed = spaceStats.scrollSpeed; respawnPosition = GameObject.FindGameObjectWithTag(Tags.player).transform.position; respawnRotation = GameObject.FindGameObjectWithTag(Tags.player).transform.rotation; }