↧
Answer by himanshu619
Dear Berenger can you tell me that how could we freeze the movable object to move only along x-axis?
View ArticleAnswer by himanshu619
Full working Code: @script RequireComponent(AudioSource) public var clip : AudioClip; function OnTriggerEnter(hit : Collider){ audio.PlayClipAtPoint(clip, Vector3 (5, 1, 2)); Destroy(gameObject); } Now...
View ArticleAnswer by himanshu619
Here is the code for you: using UnityEngine; using System.Collections; public class rotate : MonoBehaviour { public void Rotate() { //transform.rotation = Quaternion.AngleAxis(30, Vector3.up); //var...
View ArticleAnswer by himanshu619
Hey All, here is your answer: Note please put this script onto your "Player" only: var score = 0; var scoreText = "Score: 0"; var mySkin : GUISkin; function OnTriggerEnter(other : Collider ) { if...
View Article