コード例 #1
0
 public void Distroy()
 {
     myBag = null; // removes Bag
 }
コード例 #2
0
 public GameObject(int objectid)
 {
     myBag          = new Bag(); // Creates new instance of Bag
     myBag.objectid = objectid;  // adds objectid to Bag property
 }