Пример #1
0
    // Use this for initialization
    void Start()
    {
        sound = GetComponent<AudioSource>();
        directioner = GetComponent<DirectionAligner>();
        positioner = GetComponent<PositionAligner>();

        objectDragger = GetComponent<ObjectDragger>();
    }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        sound       = GetComponent <AudioSource>();
        directioner = GetComponent <DirectionAligner>();
        positioner  = GetComponent <PositionAligner>();

        objectDragger = GetComponent <ObjectDragger>();
    }
Пример #3
0
    // Use this for initialization
    void Start()
    {
        verticalizer = GetComponent<DirectionAligner>();

        dragObject = GetComponent<ObjectDragger>();
        dragObject.attachmentPoint = this.pincetTip.transform;

        positioner = GetComponent<PositionAligner>();
        positioner.targetPosition = this.transform.position;
    }
Пример #4
0
    // Use this for initialization
    void Start()
    {
        verticalizer = GetComponent <DirectionAligner>();

        dragObject = GetComponent <ObjectDragger>();
        dragObject.attachmentPoint = this.pincetTip.transform;

        positioner = GetComponent <PositionAligner>();
        positioner.targetPosition = this.transform.position;
    }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     positioner = this.gameObject.AddComponent<PositionAligner>();
 }
Пример #6
0
 // Use this for initialization
 void Start()
 {
     aligner    = GetComponent <DirectionAligner>();
     positioner = GetComponent <PositionAligner>();
     positioner.targetPosition = this.transform.position;
 }
Пример #7
0
 // Use this for initialization
 void Start()
 {
     positioner = this.gameObject.AddComponent <PositionAligner>();
 }
Пример #8
0
 // Use this for initialization
 void Start()
 {
     aligner = GetComponent<DirectionAligner>();
     positioner = GetComponent<PositionAligner>();
     positioner.targetPosition = this.transform.position;
 }