コード例 #1
0
ファイル: C_Main.cs プロジェクト: AlexandreMagi/ProjetGD3
    /// <summary>
    /// Prepares the game.
    /// </summary>
    void Start()
    {
        StopAllCoroutines();

        mainCam = Camera.main;

        wiimoteController = GetComponent <C_Wiimote>();

        followingPosition = Input.mousePosition;

        wMod = FindObjectOfType <C_WeaponMod>();

        hSoundHandlerMainMusic = CustomSoundManager.Instance.PlaySound(Camera.main.gameObject, "Drone_Ambiant", true, 0.5f);
        //CustomSoundManager.Instance.PlaySound(Camera.main.gameObject, "Turbine_Ambiant", true, 1f);
    }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        wiimoteController = GetComponent <C_Wiimote>();

        followingPosition = Input.mousePosition;
    }