예제 #1
0
        public void Init(Node node, bool inStartIsland, bool levelCompleted, int delay)
        {
            Node = node;

            // TODO: replace nodescale
            _nodeScale.SetNode(node);

            _colorizer.PrimaryColor = node.Final ? NodeFinalColor : NodeColor;

            if (!inStartIsland && !node.Final)
            {
                _colorizer.Darken(0f);
            }

            // Grow and shrink the final node
            if (node.Final)
            {
                PulseScale();

                // Indicate visually that the level has been completed before
                if (levelCompleted)
                {
                    ShowCompleted();
                }
            }

            _nodeTransit.Init();
        }
예제 #2
0
        public void Init(Arc arc, Transform parent, bool inStartIsland)
        {
            _gameAudio = GetComponentInParent <GameBoardAudio>();

            Arc    = arc;
            Parent = parent;

            _arcScale.SetArc(arc);

            _colorizer.PrimaryColor = ArcColor;

//            CreateMarkers();

            if (!inStartIsland)
            {
                _colorizer.Darken(0f);
            }
        }