public void Start() { Starting?.Invoke(this, EventArgs.Empty); while (!IsHalted) { var result = Step(); if (result == ExecuteAction.Break) { Breaking?.Invoke(this, EventArgs.Empty); break; } } }
private void Awake() { board_Setting = new Functions.Board_Setting(); candy_Init = new Functions.Candy_Init(); fill_Board = new Functions.Fill_Board(); breaking = new Functions.Breaking(); match_Finder = new Functions.Match_Finder(); values = new Functions.C_Value(); swap_Board = new Functions.Swap_Board(); check_Predicted_Case = new Functions.Check_Predicted_Case(); // 아틀라스 이미지 로드 m_atlas = Resources.Load <SpriteAtlas>("FruitAtlas"); }