コード例 #1
0
        public void notifyMinionSpawned(Minion m, TeamId team)
        {
            var ms = new MinionSpawn(m);

            _game.PacketHandlerManager.broadcastPacketTeam(team, ms, Channel.CHL_S2C);
            notifySetHealth(m);
        }
コード例 #2
0
    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;
        }
    }
コード例 #3
0
        public void NotifyMinionSpawned(IMinion m, TeamId team)
        {
            var ms = new MinionSpawn(_navGrid, m);

            _packetHandlerManager.BroadcastPacketTeam(team, ms, Channel.CHL_S2C);
            NotifySetHealth(m);
        }
コード例 #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;
    }