Пример #1
0
 private void OnEnable()
 {
     wayPoints = (CameraWayPoints)target;
     points    = serializedObject.FindProperty("points");
     list      = new ReorderableList(serializedObject, points, true, true, true, true);
     list.drawElementCallback = DrawListItems;
     list.drawHeaderCallback  = DrawHeader;
     list.elementHeight       = EditorGUIUtility.singleLineHeight * 3.7f;
 }
Пример #2
0
 // Start is called before the first frame update
 void Start()
 {
     tweening  = 0;
     wayPoints = GetComponent <CameraWayPoints>();
     if (!resetOnStart)
     {
         currentIndex = 0;
     }
     else
     {
         currentIndex = -1;
         ChangePosition();
     }
 }