public void Initialized()
    {
        InputField_X = this.transform.FindChild("InputField_X").GetComponent <InputField>();
        InputField_Y = this.transform.FindChild("InputField_Y").GetComponent <InputField>();
        InputField_Z = this.transform.FindChild("InputField_Z").GetComponent <InputField>();

        var clothPartPos = StartAlice.playerPart.FindChild(modelPartName).localPosition;

        clothDressInfo    = StartAlice.playerPart.FindChild(modelPartName).GetComponent <ClothDressInfo>();
        boxCollider       = StartAlice.playerPart.FindChild(modelPartName).GetComponent <BoxCollider>();
        InputField_X.text = ((double)clothPartPos.x).ToString();
        InputField_Y.text = ((double)clothPartPos.y).ToString();
        InputField_Z.text = ((double)clothPartPos.z).ToString();
        InputField_X.onValueChanged.RemoveAllListeners();
        InputField_Y.onValueChanged.RemoveAllListeners();
        InputField_Z.onValueChanged.RemoveAllListeners();
        InputField_X.onValueChanged.AddListener(delegate { ChangeInput(); });
        InputField_Y.onValueChanged.AddListener(delegate { ChangeInput(); });
        InputField_Z.onValueChanged.AddListener(delegate { ChangeInput(); });
    }
예제 #2
0
 private void Start()
 {
     clothDressInfo = this.GetComponent <ClothDressInfo>();
 }