Esempio n. 1
0
        public void Start()
        {
            ShadowPolygonPoints = new List <Vector2>();
            if (segmentGenerator == null)
            {
                segmentGenerator = GetComponent <Shadow2DSegmentGenerator>();
            }

            if (segmentGenerator == null)
            {
                segmentGenerator = gameObject.AddComponent <Shadow2DSegmentGenerator>();
            }

            //if (segmentGenerator == null)
            //{
            //    Debug.Log("No segment generator found!");
            //}
        }
Esempio n. 2
0
        public void Start()
        {
            ShadowPolygonPoints = new List<Vector2>();
            if (segmentGenerator == null)
            {
                segmentGenerator = GetComponent<Shadow2DSegmentGenerator>();
            }

            if (segmentGenerator == null)
            {
                segmentGenerator = gameObject.AddComponent<Shadow2DSegmentGenerator>();
            }

            //if (segmentGenerator == null)
            //{
            //    Debug.Log("No segment generator found!");
            //}
        }