I wanted to make a skill that can be used by both Player & Enemy.
How do I make it such that the skill will not be colliding with the owner/caster or colliding with both?
One stupid way I have is to create empty gameObjects as the Skill's child and set their tag as "targetPlayer","targetEnemy" or "targetAll" whenever my player/enemy cast the skills.
And when the skill collided with Player/Enemy, i will check the skill's children and see if there's matching tag and proceed if so.
Is there better way to do what i wanted??