Example #1
0
    // Use this for initialization
    void Start()
    {
        Vector3    relativePos = staticPoint.position - transform.position;
        Quaternion rotation    = Quaternion.LookRotation(relativePos);

        transform.rotation = rotation;

        PlateauScript = (PlateauMove)GameObject.FindGameObjectWithTag("Plateau").GetComponent(typeof(PlateauMove));
    }
Example #2
0
 // Use this for initialization
 void Start()
 {
     Plateau       = GameObject.FindGameObjectWithTag("Plateau");
     PlateauScript = (PlateauMove)Plateau.GetComponent <PlateauMove> ();
 }