示例#1
0
文件: Sun.cs 项目: frozen4/UnityPlus
    void OnEnable()
    {
        SerializedObject so = new SerializedObject(target);

        sp1 = so.FindProperty("SunDirectionCharacter");
        sp2 = so.FindProperty("SunColor");
        sp3 = so.FindProperty("SunColorIntensity");
        sp4 = so.FindProperty("AmbientColor");
        sp5 = so.FindProperty("AmbientColorIntensity");

        Sun sun = target as Sun;

        sun.Apply();
    }