コード例 #1
0
 void Start()
 {
     Collider      = Player.GetComponent <PickupCollider>();
     PlayerPhysics = Player.GetComponent <Rigidbody2D>();
     if (isMobile)
     {
         Input.multiTouchEnabled = false;
     }
 }
コード例 #2
0
 private void SetCarryText(PickupCollider x)
 {
     if (x != null)
     {
         carryText.text = "Carrying: " + x.itemName;
     }
     else
     {
         carryText.text = "";
     }
 }