예제 #1
0
    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);
    }
예제 #2
0
 // 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;
 }