public void OnLineDrawComplete(GameObject player, Vector2 position, GameObject encountedEnemy) { this.remainLineCount -= 1; UIManager.Instance.ActiveLineUI(remainLineCount, totalLineCount); PlayerAndGoals playerAndGoals = FindPlayerAndGoals(player); Goal goal = new Goal(position, encountedEnemy); playerAndGoals.goals.Add(goal); }
// Use this for initialization void Start() { FindDrawers(); foreach (Drawer drawer in drawers) { drawer.StartDrawingPhase(this); PlayerAndGoals playerAndGoals = new PlayerAndGoals(); playerAndGoals.player = drawer.transform.parent.gameObject; playerAndGoalsList.Add(playerAndGoals); } remainLineCount = totalLineCount; }