private void _Spawn(FISH fish) { BoidType boidType = boidsToSpawn.Where(x => x.type == fish).ElementAt(0); Transform spawn = GetRandomSpawnPoint(); GameObject go = Instantiate(boidType.boid, spawn.position, spawn.rotation); }
private void AddObjects() { NEWS n = new NEWS { TITLE = "aaa", TIME = DateTime.Now, CONTENT = "jfjjfjjjf" }; Collections.News.Add(n); ALBUM a = new ALBUM { NAME = "Танцы с бубном", }; Collections.Albums.Add(a); FISH f = new FISH { NAME = "Ерш", DESCRIPTION = "blablalalbablalbalbalablalbala" }; Collections.Fishes.Add(f); STATE_INSPECTION i = new STATE_INSPECTION { PHONE = "+5255522", ADDRESS = "HHCKFKVKFV", REGION = "mINSK" }; Collections.Inspectios.Add(i); DIALOG d = new DIALOG { }; USER u = new USER { FIRSTNAME = "alb", LASTNAME = "ert" }; Collections.Friends.Add(u); }
/// <summary> /// Returns the points modifier for a certain fish /// </summary> /// <param name="fish"></param> /// <returns></returns> public static float GetUpgradeModifier(FISH fish) { //Fish point value * this return(1 + (PointModifiers[fish] * 0.1f)); }
public static void Spawn(FISH fish) { Instance._Spawn(fish); }