Exemple #1
0
 // Use this for initialization
 void Start()
 {
     _Holder = transform.parent.gameObject;
     _HolderScript = _Holder.GetComponent<DropTargetHolder> () as DropTargetHolder;
     _fOriginalPosition = transform.localPosition.z;
 }
Exemple #2
0
    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;
    }