Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        Adria  = FindObjectOfType <AdriaController>();
        Zaakir = FindObjectOfType <ZaakirController>();

        if (Adria.startPoint == sPoint || Zaakir.startPoint == sPoint)
        {
            Adria.lastMove  = startDirection;
            Zaakir.lastMove = startDirection;

            theCamera = FindObjectOfType <CameraController>();
            theCamera.transform.position = new Vector3(transform.position.x, transform.position.y, theCamera.transform.position.z);
            Adria.transform.position     = transform.position;
            Zaakir.transform.position    = transform.position;
        }
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     Adria  = FindObjectOfType <AdriaController>();
     Zaakir = FindObjectOfType <ZaakirController>();
 }