예제 #1
0
    public void AddStar(Star star)
    {
        if (!gameplay)
        {
            return;
        }

        // TEMP: just set size to large to show selected
        star.SetSelected(true, largeStarSize);

        // TODO: connection stuff

        /*
         * if (lastClickedStar)
         * {
         *      GameObject cObj = Instantiate(connectionPrefab) as GameObject;
         *      Connector c = cObj.GetComponent<Connector>();
         *      c.SetConnection(lastClickedStar.transform.position, star.transform.position);
         *
         *      lastClickedStar.transform.localScale = largeStarSize;
         *      star.transform.localScale = largeStarSize;
         *
         *      lastClickedStar.AddConnection(star, c);
         * }
         * lastClickedStar = star;
         */

        lamp.AddColor(star.color);
        reaperAnim.Play(false);
        CheckColor();
    }