Esempio n. 1
0
    void OnTriggerEnter(Collider col) {
        if (col.gameObject.CompareTag("Player") && affected.Contains(col.gameObject.GetComponent<CharacterStatus>().characterName)) {

            icon = col.gameObject.GetComponentInChildren<CharacterIcon>();
            icon.ActiveCanvas(true);
            icon.SetImage(tooltipImage);

        }
    }
Esempio n. 2
0
 void ShowCharacterTooltip(GameObject character) {
     if (CharacterManager.IsActiveCharacter(character)) {
         if (TooltipHasToBeShown(character)) {
             if ((TooltipManager.On) && (tooltipImage != null)) {
                 icon = character.GetComponentInChildren<CharacterIcon>();
                 icon.ActiveCanvas(true);
                 icon.SetImage(tooltipImage);
             }
         } else {
             HideCharacterTooltip();
         }
     }
 }