示例#1
0
    private Stance m_eCurrentStance = Stance.IDLE;                                              // Current Stance
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* Redefined Method: Start
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public override void Start()
    {
        base.Start();
        CreateFullPath();

        m_DeathHissAudioSource = SoundPlayerManager.AddAudio(gameObject, m_DeathHissSoundClip);
    }
示例#2
0
    private void Start()
    {
        renderer          = GetComponent <SpriteRenderer>();
        actualOrientation = Orientation.HORIZONTAL;
        sound             = GetComponent <SoundPlayerManager>();

        Camera.main.GetComponent <CameraManager>().AddPlayer(transform);
    }
示例#3
0
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* Redefined Method: Start
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    public override void Start()
    {
        base.Start();
        CreateFullPath();

        // Add Audio
        m_HissSoundAudioSource = SoundPlayerManager.AddAudio(gameObject, m_HissSound);

        SetCurrentStance((m_ePathChoosing == PathChoosing.FOLLOW_PLAYER) ? Stance.FOLLOW_PLAYER_BEGIN : Stance.IDLE);
    }
示例#4
0
    private void Start()
    {
        if (!isLocalPlayer)
        {
            return;
        }

        faceOverlay = Instantiate(prefabFaceOverlay);
        DontDestroyOnLoad(faceOverlay);
        weapon = GetComponent <BaseWeapon>();
        //playerWeight = GetComponent<Weight>();
        //movementController = GetComponent<PlayerMovementController>();
        soundPlayerManager = GetComponent <SoundPlayerManager>();
    }
示例#5
0
    private void Start()
    {
        rage      = GetComponent <PlayerRage>();
        mainMenu  = FindObjectOfType <MainMenu>();
        interMenu = FindObjectOfType <InterLevelMenu>();
        pauseMenu = FindObjectOfType <PauseMenu>();

        animator          = GetComponent <Animator>();
        renderer          = GetComponent <SpriteRenderer>();
        actualOrientation = Orientation.HORIZONTAL;
        sound             = GetComponent <SoundPlayerManager>();

        Camera.main.GetComponent <CameraManager>().AddPlayer(this.transform);
    }
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Setup Sounds
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private void SetupSounds()
    {
        m_SoundFiles.FlyInSource = new AudioSource[m_SoundFiles.FlyInSFX.Length];
        for (int i = 0; i < m_SoundFiles.FlyInSFX.Length; ++i)
        {
            m_SoundFiles.FlyInSource[i] = SoundPlayerManager.AddAudio(gameObject, m_SoundFiles.FlyInSFX[i], false, false, 0.8f);
        }

        m_SoundFiles.FlyOutSource = new AudioSource[m_SoundFiles.FlyOutSFX.Length];
        for (int i = 0; i < m_SoundFiles.FlyOutSFX.Length; ++i)
        {
            m_SoundFiles.FlyOutSource[i] = SoundPlayerManager.AddAudio(gameObject, m_SoundFiles.FlyOutSFX[i], false, false, 0.8f);
        }

        m_SoundFiles.TextSource = SoundPlayerManager.AddAudio(gameObject, m_SoundFiles.TextSFX, false, false, 0.8f);
    }
示例#7
0
 void Start()
 {
     input_clipname = GameObject.Find("InputField").GetComponent <InputField>();
     sManager       = GameObject.Find("AudioPlayManager").GetComponent <SoundPlayerManager>();
 }
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* Redefined Method: Start
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 void Start()
 {
     m_HealthAlarmSource = SoundPlayerManager.AddAudio(gameObject, m_HealthAlarmSound, false, false, 1.0f);
 }
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    //	* New Method: Setup Instance Variables
    //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    private void SetupInstanceVariables()
    {
        m_fJumpVelocity = (m_fJumpVelocity < 0.001f) ? 300.0f : m_fJumpVelocity;

        m_AttachHissSource = SoundPlayerManager.AddAudio(gameObject, m_AttachHissSound);
    }
示例#10
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* New Method: Activate Play BGM Button Effect
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void ActivatePlayBGMButtonEffect(ArrowDirection eDirection)
 {
     SoundPlayerManager.SetMuted(!SoundPlayerManager.IsMuted());
     SetPlayBGMLabel();
 }
示例#11
0
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 //	* New Method: Set "Play BGM Bool" Text
 //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 private void SetPlayBGMLabel()
 {
     GetComponent <PauseScreenObjectsHolder>().m_PauseScreenPanel.PlayBGMTypeLabel.GetComponent <UILabel>().text = (SoundPlayerManager.IsMuted() ? "Off" : "On");
 }