New answers tagged

1

Physics.Raycast will help you to get the gameobject using mousePosition and ScreenPointToRay using UnityEngine; using System.Collections; public class Example : MonoBehaviour { Ray ray; RaycastHit hit; void Update() { ray = Camera.main.ScreenPointToRay(Input.mousePosition); if(Physics.Raycast(ray, out hit)) ...


0

Try Using NSUserDefaults it has the full CRUD functionality and you can save each ship type with their specific hit points and cannonball More description about NSUserDefaults is Here


0

Issue 1: Should I use Unity to place my assets to create my world, or do I create another blender file with all my assets linked? Both strategies can work depending on what's more comfortable for you. When you create the world in Unity it will be easier to control it from Unity (add, move or remove objects at runtime). But neither will give you an ...


0

To get the Halo component you must do as follows. Behaviour halo =(Behaviour)gameObject.GetComponent ("Halo");



Top 50 recent answers are included