This commit is contained in:
정영민
2025-02-20 09:59:37 +09:00
parent 4dfe902e02
commit 2dd5d814a7
6244 changed files with 4671685 additions and 5 deletions

View File

@@ -0,0 +1,43 @@
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using UnityEngine;
using WI;
namespace WI.Test
{
public class BindingTester : MonoBehaviour
{
public int value1;
public float value2;
public string value3;
public Vector3 value4;
private void Awake()
{
FieldBinder.Regist(this).Binding(nameof(value1), ChangeEvent1);
FieldBinder.Regist(this).Binding(nameof(value2), ChangeEvent2);
FieldBinder.Regist(this).Binding(nameof(value3), ChangeEvent3);
FieldBinder.Regist(this).Binding(nameof(value4), ChangeEvent4);
}
void ChangeEvent4()
{
Debug.Log("Vector3 field Changed");
}
void ChangeEvent3()
{
Debug.Log("string field Change");
}
void ChangeEvent1()
{
Debug.Log("Int Field Change");
}
void ChangeEvent2()
{
Debug.Log("float field Change");
}
}
}

View File

@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1be3c28b0e0dc59479ec96d6a6e64e7a
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: