コード例 #1
0
        void OnCollisionEnter2D(Collision2D collision)
        {
            Painter painter = new Painter();

            painter.ChangeOpacity(gameObject, 50f);
            rigidBody.constraints = new RigidbodyConstraints2D();
            collider.isTrigger    = true;
        }