Esempio n. 1
0
        public void notifyMinionSpawned(Minion m, TeamId team)
        {
            var ms = new MinionSpawn(m);

            _game.PacketHandlerManager.broadcastPacketTeam(team, ms, Channel.CHL_S2C);
            notifySetHealth(m);
        }
    private void Start()
    {
        dagr = GameObject.Find("Player1");
        nott = GameObject.Find("Player2");

        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            disableSpawning = true;
        }

        gameObject.GetComponent <iTweenPath>().nodes[0] = transform.position; //set start node to the same position as the gameobject

        if (canCollideWithPlayer)
        {
            minionPrefab.layer = 0;
        }
        else
        {
            minionPrefab.layer = 20;
        }
    }
Esempio n. 3
0
        public void NotifyMinionSpawned(IMinion m, TeamId team)
        {
            var ms = new MinionSpawn(_navGrid, m);

            _packetHandlerManager.BroadcastPacketTeam(team, ms, Channel.CHL_S2C);
            NotifySetHealth(m);
        }
Esempio n. 4
0
    void Start()
    {
        instance         = this;
        colorHudInstance = ColorHUD.instance;

        StartCoroutine(SpawnManager1());
        firstSpawnPoint = 0;
        lastSpawnPoint  = Map.height;
        tutoInstance    = GetComponent <TutorialManager>();


        tutoInstance.numWaves = waves.Length; //per que el tutorial manager sapiga el numero de waves que hi ha

        lastMinionDead = true;
    }