示例#1
0
    //public void PlaceTarget (Point _gunPoint, float _angle, int _prob)
    public void PlaceTarget(Point _gunPoint, float _angle)
    {
        GameObject _obj = (GameObject)Instantiate(PlacementManager.Instance.TargetObj, transform.position, Quaternion.identity);

        TargetScript _targetScr = _obj.GetComponent <TargetScript> ();

        _targetScr.PlaceObj(0, this.GridPosition, _obj);
        //Debug.Log ("target Placer");

        //Debug.LogError ("get gun is commented out");
        _targetScr.GetGun(_gunPoint, _angle);

        //_obj.transform.SetParent (transform);


        //_obj.GetComponent <TargetScript> ().GetGun (_gunPoint);

        //TakeDamage (false);
    }