I know this post is old but THERE IS such thing as a sub-tag just type MAIN TAG NAME/SUB TAG NAME when you are creating a new tag you get this(this is a project I’m doing where Block is the main tag and Cube,Sphere and Cylinder are subtags):
No, there is no such tag, but you can use layers which makes it like you would have a second tag Or your own enum system.
EDIT: Just for the sake of knowledge, using enmu and Flags it is possible to add multiple attribute to your object:
[Flags]
public enum Tags{
None = 0 Enemy = 1, Minion = 2, MidBoss = 4, Boss= 8, Flyer= 16
}
public class FlyingBoss:MonoBehaviour
{
State e_state;
// Overwrite state
public void SetState(State state)
{
e_state = state;
}
// Adds the state to the current state of the GameManager.
public void AddState(State state)
{
e_state |= state;
}
// Gets the current state.
public State GetState()
{
return e_state;
}
// Removes the given state from the current state.
// If the state is not contain, nothing happens.
public void RemoveState(State state)
{
e_state &= ~state;
}
// Checks if the state is contained in the current state.
public bool CheckForState(State state)
{
if ((e_state&state)==state) {
return true;
}
return false;
}
}
It is then possible to give multiple tags:
flyingBoss = Tags.Enemy|Tags.Boss|Tags.Flying;
and you can check if he is one of those like this:
if (flyingBoss.CheckForState(State.Flying)&& flyingBoss.CheckForState(State.Boss))
// It is a flying boss