コード例 #1
0
 // Use this for initialization
 void Start()
 {
     Player       = GameObject.Find("Player").GetComponent <Player_Manager>();
     Upgrade      = GetComponent <SpriteRenderer>().sprite;
     Rupees       = GameObject.Find("RupeeCount").GetComponent <RupeeCount>();
     Canvas       = transform.GetChild(0).gameObject;
     interactable = true;
     Upgrade.name = inspectorName;
 }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     RupeeHUD  = GameObject.Find("RupeeCount").GetComponent <RupeeCount>();
     ItemAudio = GameObject.Find("Player").GetComponent <Player_Manager>().PlayerInternalAudio;
 }