示例#1
0
    private void Start()
    {
        mainCamera    = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();
        screenCenterX = mainCamera.pixelWidth / 2;

        controllerObj = GameObject.FindGameObjectWithTag("GameController");
        displayScript = controllerObj.GetComponent <ClothingDisplayOnPlayer>();
    }
示例#2
0
 private void Start()
 {
     inventroy     = GetComponent <Inventory>();
     displayScript = GetComponent <ClothingDisplayOnPlayer>();
     shop          = GetComponent <Shop>();
 }