Start() private méthode

private Start ( ) : void
Résultat void
Exemple #1
0
 private void CheckLeave(PlayerInput playerInput, int index)
 {
     if (
         playerInput.Start( ) &&
         playerInput.Select( ) &&
         playerInput.A( )
         )
     {
         Leave(playerInput, index);
     }
 }
Exemple #2
0
 private void CheckSplit(PlayerInput playerInput, int index)
 {
     if (playerInput.Select() && playerInput.Start() && playerInput.X())
     {
         if (playerInput.PadUsedType == PadUsedType.SINGLE)
         {
             ChangePadUsedTypeForPlayerInput(playerInput, PadUsedType.DUAL_LEFT);
             CreatePlayer(playerInput.InputIndex, PadUsedType.DUAL_RIGHT);
         }
     }
 }
Exemple #3
0
    void Start()
    {
        PlayerInput.Start();

        thresholdIndex = (thresholdIndex + 1) % MAX_THRESHOLDS;
        List <MeshVertex> vertices = new List <MeshVertex>();
        List <int>        indices  = new List <int>();


        root = Octree.BuildOctree(new Vector3(-octreeSize / 2, -octreeSize / 2, -octreeSize / 2), octreeSize, THRESHOLDS[thresholdIndex]);

        if (root == null)
        {
            Debug.Log("root is null");
        }

        Octree.GenerateMeshFromOctree(root, vertices, indices);
    }