コード例 #1
0
    private void Start()
    {
        aSrc = GetComponent <AudioSource>();

        //Setup der Vibration:
        vib = new Vibration();
        vib.SetVibrationEffect(new long[54] {
            1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 10, 1, 10, 1, 10, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2
        });
    }
コード例 #2
0
    private void Awake()
    {
        millSeq_Object = transform.parent.gameObject;
        anim           = GetComponent <Animator>();

        vib = new Vibration();
        vib.SetVibrationEffect(new long[50] {
            1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
        });
    }
コード例 #3
0
    void Start()
    {
        potatoGame = this;
        realVel    = velocity * Time.fixedDeltaTime;

        /*
         * staticCam = true;
         * pauseMove = true;
         * runGame = true;
         * cScript.transform.rotation = Quaternion.identity;
         * StartCoroutine(RunPotatoGame());
         * //*/

        //Setup der Vibration:
        vib = new Vibration();
        vib.SetVibrationEffect(new long[2] {
            1, 10
        }, 0);
        vib.SetVibrationEffect(new long[2] {
            1, 5
        }, 0);
        vib.SetVibrationEffect(new long[2] {
            1, 2
        }, 0);
        vib.SetVibrationEffect(new long[2] {
            1, 1
        }, 0);
        vib.SetVibrationEffect(new long[2] {
            5, 1
        }, 0);
        vib.SetVibrationEffect(new long[2] {
            10, 1
        }, 0);
    }
コード例 #4
0
    private void Awake()
    {
        player         = gameObject;
        scoreText      = canvas.transform.GetChild(2).GetChild(1).GetComponent <Text>();
        scoreText.text = "0/" + prey.eggGoal;
        rb             = GetComponent <Rigidbody2D>();
        anim           = transform.GetChild(0).GetComponent <Animator>();
        anim.SetBool("moving", false);

        //Setup der Vibration:
        vib = new Vibration();
        vib.SetVibrationEffect(new long[30] {
            1, 10, 1, 10, 1, 10, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2
        });
    }