コード例 #1
0
ファイル: TextManager.cs プロジェクト: tapenjoyGame/cry
    public void PushMessagePosition(Transform attach_transform, ICreature creature, string message, eBuffColorType color_type, eTextPushType push_type, float add_position = 0f)
    {
        if (creature.IsShowText == false)
        {
            return;
        }

        TextAnimation ta = Message.Push(attach_transform, creature.TextOffset, message, push_type, 1f, add_position);

        ta.Text.color = CharacterBuff.GetColor(color_type);
    }
コード例 #2
0
ファイル: TextManager.cs プロジェクト: tapenjoyGame/cry
    public void PushMessage(ICreature creature, string message, eBuffColorType color_type, eTextPushType push_type, float add_position = 0f)
    {
        if (creature.IsShowText == false)
        {
            return;
        }

        Transform     attach_transform = creature.Character.transform;
        float         scale            = attach_transform.GetComponent <Character>().Creature.Scale;
        TextAnimation ta = Message.Push(attach_transform, creature.TextOffset, message, push_type, scale, add_position);

        ta.Text.color = CharacterBuff.GetColor(color_type);
    }