Example #1
0
 void ExplodeListener(SendExplodeArgs sendExplodeArgs)
 {
     if (sendExplodeArgs.attacking)
     {
         sendExplodeArgs.glow = glow;
         arena.Begin();
         TriggerMove triggerMove = GetComponent <TriggerMove>();
         triggerMove.DestroySelf(true);
     }
 }
Example #2
0
    public virtual void Start()
    {
        Arena arena = null;

        switch (ActiveGameMode())
        {
        case DEATHMATCH:
            DeathmatchArena dmarena = gameObject.AddComponent <DeathmatchArena>();
            arena = (Arena)dmarena;
            break;
        }
        if (arena == null)
        {
            return;
        }
        menu = gameObject.AddComponent <MenuManager>();
        menu.Change("ARENAHUD");
        arena.CopyData(this);
        arena.LoadDataFromSession();
        arena.Begin();
    }