Esempio n. 1
0
    private void OnTriggerEnter(Collider other)
    {
        if (state == State.Firing)
        {
            speed      = 30.0f;
            state      = State.Landing;
            CanPushFlg = PIManager.CanPushItem(other.tag);
        }

        if (other.tag == "S_Item" || other.tag == "M_Item" || other.tag == "L_Item" || other.tag == "XL_Item")
        {
            ItemObj = other.gameObject;
        }
        else
        {
            Debug.Log("ダメ");
        }
    }