Esempio n. 1
0
 public void _SetDeselectedState()
 {
     Green.SetActive(false);
     ArrowMove.SetActive(false);
     // Structure.SetActive (true);
     //ButtonHolder.SetActive (false);
 }
Esempio n. 2
0
    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);
    }
Esempio n. 3
0
 void Awake()
 {
     arrowMove    = GetComponent <ArrowMove>();
     arrowDisplay = GetComponent <ArrowDisplay>();
 }