Exemple #1
0
    protected virtual void OnTriggerStay2D(Collider2D collider)
    {
        NPlayerController np = collider.gameObject.GetComponent <NPlayerController>();

        if (np != null)
        {
            playersInRange[collider.gameObject] = np;
            np.TryAddTotem(this, (np.transform.position - collider.transform.position).magnitude);
        }
    }