internal GameObject CreateDummyTank(string color, string name, Vector3 startingPos, bool infiniteHealth, bool infiniteAmmo) { var t = tankFactory.CreateDummyTank(color, name, startingPos); t.GetComponent <DummyTank>().Sim = this; t.GetComponent <DummyTank>().infiniteAmmo = infiniteAmmo; t.GetComponent <DummyTank>().infiniteHealth = infiniteHealth; tankControllers.Add(t.GetComponent <DummyTank>()); return(t); }