void ExplodeListener(SendExplodeArgs sendExplodeArgs) { if (sendExplodeArgs.attacking) { sendExplodeArgs.glow = glow; arena.Begin(); TriggerMove triggerMove = GetComponent <TriggerMove>(); triggerMove.DestroySelf(true); } }
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(); }