public void _SetDeselectedState() { Green.SetActive(false); ArrowMove.SetActive(false); // Structure.SetActive (true); //ButtonHolder.SetActive (false); }
private void CreateShoot(Vector3 start, Vector3 target) { start.y = 5; target.y = 3; GameObject q = gameController.arrow; ArrowMove arr = q.GetComponent <ArrowMove>(); arr.target = target; arr.start = start; q.transform.LookAt(target); GameObject arrow = Instantiate(q, start, Quaternion.identity) as GameObject; float speed = 5; //arrow.transform.position = Vector3.MoveTowards(start, target, speed * Time.deltaTime); }
void Awake() { arrowMove = GetComponent <ArrowMove>(); arrowDisplay = GetComponent <ArrowDisplay>(); }