Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        MG_Pin_Arms father = gameObject.transform.parent.GetComponent <MG_Pin_Arms>();

        grandfather = father.getFather();
        spawnPos    = gameObject.transform.position;
        rb          = gameObject.GetComponent <Rigidbody>();
        //Evite les rotations de l'objet indésirables.
        rb.constraints = RigidbodyConstraints.FreezeRotation;
        rs             = us = touch = false;
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     father    = gameObject.transform.parent.GetComponent <MG_Pin_Surface>();
     mla       = rla = mra = rra = false;
     animSpeed = 300f;
 }