Пример #1
0
    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);
    }
Пример #2
0
        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);
        }
Пример #3
0
 /// <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));
 }
Пример #4
0
 public static void Spawn(FISH fish)
 {
     Instance._Spawn(fish);
 }