27-08-2016, 01:26 AM
grazie ad entrambi per lwe rispsote ed il vostro tempo..cmq riguardo la questione footstep sott'acqua io ho inserito la variable "inwater" nel FirstPerson Controller.cs dopo avviamente averla resa pubblica nello script swim.cs
ed infine sempre nello script FirstPesonController.cs ho inserito questo
private void PlayFootStepAudio()
{
if (!m_CharacterController.isGrounded || inwater = true);
{
return;
}
m_FootstepSounds.enabled = false
}
ma ho i seguenti errori
Severity Code Description Project File Line Suppression State
Error CS0121 The call is ambiguous between the following methods or properties: 'FirstPersonController.PlayFootStepAudio()' and 'FirstPersonController.PlayFootStepAudio()' L.O.S.T. Pre Alpha v0.1.CSharp.Plugins C:\Users\Peppe\Documents\L.O.S.T. Pre Alpha v0.1\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs 209 Active
Severity Code Description Project File Line Suppression State
Error CS0111 Type 'FirstPersonController' already defines a member called 'PlayFootStepAudio' with the same parameter types L.O.S.T. Pre Alpha v0.1.CSharp.Plugins C:\Users\Peppe\Documents\L.O.S.T. Pre Alpha v0.1\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs 230 Active
ed infine sempre nello script FirstPesonController.cs ho inserito questo
private void PlayFootStepAudio()
{
if (!m_CharacterController.isGrounded || inwater = true);
{
return;
}
m_FootstepSounds.enabled = false
}
ma ho i seguenti errori
Severity Code Description Project File Line Suppression State
Error CS0121 The call is ambiguous between the following methods or properties: 'FirstPersonController.PlayFootStepAudio()' and 'FirstPersonController.PlayFootStepAudio()' L.O.S.T. Pre Alpha v0.1.CSharp.Plugins C:\Users\Peppe\Documents\L.O.S.T. Pre Alpha v0.1\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs 209 Active
Severity Code Description Project File Line Suppression State
Error CS0111 Type 'FirstPersonController' already defines a member called 'PlayFootStepAudio' with the same parameter types L.O.S.T. Pre Alpha v0.1.CSharp.Plugins C:\Users\Peppe\Documents\L.O.S.T. Pre Alpha v0.1\Assets\Standard Assets\Characters\FirstPersonCharacter\Scripts\FirstPersonController.cs 230 Active