private void OnValidate() { ProjMotion p = GetComponent <ProjMotion>(); if (Motion == null && p != null) { Motion = p; } if (StartingPoint == null) { StartingPoint = this.transform; } }