Example #1
0
        static public void SetType(Character character, eLightingType type)
        {
            if (character == null)
            {
                return;
            }
            switch (type)
            {
            case eLightingType.None:
                character.CharacterAnimation.SetRimColor(new Color32(255, 255, 255, 0));
                break;

            case eLightingType.Active:
                character.CharacterAnimation.SetRimColor(new Color32(255, 255, 255, 255));
                break;

            case eLightingType.Team:
            {
                character.CharacterAnimation.SetRimColor(new Color32(64, 255, 64, 255));
            }
            break;

            case eLightingType.Enemy:
            {
                character.CharacterAnimation.SetRimColor(new Color32(255, 64, 64, 255));
            }
            break;
            }
        }
Example #2
0
 public LightingTarget(Character character, eLightingType type)
 {
     Character = character;
     Type      = type;
     SetType();
 }