turnManager.Start C# (CSharp) Méthode

Start() private méthode

private Start ( ) : void
Résultat void
    void Start()
    {
        // This part is necessary for any spawned prefab
        // This will change to "gameController(Clone)" if we decide to instantiate the gameController
        GameObject gameController = GameObject.Find ("gameController");
        iManager = gameController.GetComponent<inputManager> ();
        time = -1;
        turn = 0;
        clockCoroutine = clock ();
        // A test of one of the most complicated situations
        /*
        Vector2[] testEndPos = new Vector2[2];
        Vector2[] testV = new Vector2[2];
        testEndPos[0] = new Vector2(0,0);
        testEndPos[1] = new Vector2(0,0);
        testV[0] = new Vector2(1,0);
        testV[1] = new Vector2(0,1);
        List<Vector2>[] result = new List<Vector2>[2];
        result = calculateCollision(testEndPos,testV);
        for (int i=0; i<2; i++) {
            print ("Player"+i.ToString());
            for (int j=0;j<result[i].Count;j++){
                print (result[i][j]);
            }
        }
        */
    }