// Use this for initialization void Start() { _Holder = transform.parent.gameObject; _HolderScript = _Holder.GetComponent<DropTargetHolder> () as DropTargetHolder; _fOriginalPosition = transform.localPosition.z; }
private float _fOriginalPosition; // The original vertical position of the drop target // Use this for initialization void Start() { _Holder = transform.parent.gameObject; _HolderScript = _Holder.GetComponent <DropTargetHolder> () as DropTargetHolder; _fOriginalPosition = transform.localPosition.z; }