Ejemplo n.º 1
0
        private void Start()
        {
            GameObject point   = new GameObject();
            Point2D    point2d = point.AddComponent <Point2D>();

            point2d.transform.SetParent(this.transform.Find("Parent"));
            point2d.transform.localPosition = Vector3.zero;
            point2d.Init();

            point2d.color = Color.white;
            point2d.size  = 20;
            point2d.AddAnimation <Anim4Point2D_01>();
            //point2d.SetTexture(Resources.Load<Texture2D>("Points/Point2"));
        }