コード例 #1
0
    private void OnGetDamage(object sender, System.EventArgs e)
    {
        DamageEventArgs args = e as DamageEventArgs;

        if (args.from != null && args.damage >= damage)
        {
            Condition con = poison.Exist(args.from);
            if (con == null)
            {
                con           = Instantiate(poison, args.from.conditionDisplay);
                con.character = args.from;
            }
            con.Add(poison_stack);
        }
        Settlement();
        text.text = stack.ToString();
        if (stack <= 0)
        {
            Destroy(gameObject);
        }
    }