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(); }
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); } }