示例#1
0
    void OnTriggerExit(Collider tOther)
    {
        // If interest point, remove it from the list
        EyeInterest tInterest = tOther.GetComponent <EyeInterest>();

        if (tInterest != null)
        {
            _tInterest.Remove(tInterest);
        }
    }
示例#2
0
    void OnTriggerEnter(Collider tOther)
    {
        // If interest point, add it to the list
        EyeInterest tInterest = tOther.GetComponent <EyeInterest>();

        if (tInterest != null)
        {
            _tInterest.Add(tInterest);
        }
    }