コード例 #1
0
    void OnTriggerEnter2D(Collider2D other)
    {
        Burp burp = other.GetComponentInParent <Burp>();

        if (burp != null)
        {
            value += burp.strength;
            SendMessage("Disgusted");
        }
    }
コード例 #2
0
        public void LongBurp_IntInputValue_ReturnTheWordBurpWithAmountOfRs(int num, string expected)
        {
            var actual = Burp.LongBurp(num);

            Assert.Equal(expected, actual);
        }