Exemple #1
0
    private void OnValidate()
    {
        ProjMotion p = GetComponent <ProjMotion>();

        if (Motion == null && p != null)
        {
            Motion = p;
        }

        if (StartingPoint == null)
        {
            StartingPoint = this.transform;
        }
    }