Exemplo n.º 1
0
        void OnPlayerDisconnected(BasePlayer player)
        {
            ESPPlayer component = player.GetComponent <ESPPlayer>();

            if (component != null)
            {
                component.OnDestroy();
            }
        }
Exemplo n.º 2
0
        void AddEspPlayer(BasePlayer player)
        {
            ESPPlayer Component = player.GetComponent <ESPPlayer>();

            if (Component == null)
            {
                player.gameObject.AddComponent <ESPPlayer>();
            }
        }