im attempting to use the AI from the 3rd person shooter demo as a playable character (im still learning to animate characters), i was wondering if it is possible to activate the orb control script (opens the gun platform and fires the gun) with the left mouse button,to effectively using it as a weapon.i would greatly appreciate your help. i just started to use unity and the coding behind it,my only experience with coding is the code used for MS_DOS commands.
1 Answer
1This is how you can detect Left Mouse Button click…
if (Input.GetMouseButtonDown(0))
Debug.Log(“Pressed left click.”);
heyy , Just go through this link…
http://unity3d.com/support/documentation/ScriptReference/Input.GetMouseButtonDown.html