Esempio n. 1
0
 protected void Start()
 {
     ChatAPI.AddListener(HandleMessage);
     PhysicsManager.AddEndGameTimerListener(DoEndGame);
     ItemEvent.AddPickupListener(HandleEvent);
     ItemEvent.AddUseListener(HandleUse);
 }
 protected void Start()
 {
     ChatAPI.AddListener(HandleMessage);
     //PhysicsManager.AddEndGameTimerListener(TimerFunction);
     ItemEvent.AddPickupListener(HandleEvent);
 }
    //public int m_nbrFactions;
    //private bool m_gameHasStarted;
    //private bool m_isInitialized;

    #region properties

    #endregion

    #region system

    private void Awake()
    {
        ItemEvent.AddPickupListener(PlayerPickUp);
        listPlayerByName = new Dictionary <string, Player>();
        listPlayerById   = new Dictionary <int, Player>();
    }