Example #1
0
    protected new void Awake()
    {
        base.Awake();

        avatarStateAttack_1Right = GetComponent <AvatarStateAttack_1Right>();
        if (avatarStateAttack_1Right == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1Right Component!");
        }

        avatarStateAttack_1Left = GetComponent <AvatarStateAttack_1Left>();
        if (avatarStateAttack_1Left == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1Left Component!");
        }

        avatarStateAttack_1Up = GetComponent <AvatarStateAttack_1Up>();
        if (avatarStateAttack_1Up == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1Up Component!");
        }

        avatarStateAttack_1UpLeft = GetComponent <AvatarStateAttack_1UpLeft>();
        if (avatarStateAttack_1UpLeft == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1UpLeft Component!");
        }

        avatarStateAttack_1UpRight = GetComponent <AvatarStateAttack_1UpRight>();
        if (avatarStateAttack_1UpRight == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1UpRight Component!");
        }

        avatarStateAttack_1Down = GetComponent <AvatarStateAttack_1Down>();
        if (avatarStateAttack_1Down == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1Down Component!");
        }

        avatarStateAttack_1DownLeft = GetComponent <AvatarStateAttack_1DownLeft>();
        if (avatarStateAttack_1DownLeft == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1DownLeft Component!");
        }

        avatarStateAttack_1DownRight = GetComponent <AvatarStateAttack_1DownRight>();
        if (avatarStateAttack_1DownRight == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1DownRight Component!");
        }
    }
    protected new void Awake()
    {
        base.Awake();

        avatarStateRunDown = GetComponent <AvatarStateRunDown>();
        if (avatarStateRunDown == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateRunDown Component!", name);
        }

        avatarStateAttack_1Down = GetComponent <AvatarStateAttack_1Down>();
        if (avatarStateAttack_1Down == null)
        {
            Debug.LogWarningFormat("{0} does not have a AvatarStateAttack_1Down Component!", name);
        }
    }