コード例 #1
0
ファイル: Brush.cs プロジェクト: Sybmarina3000/AStar
    // Start is called before the first frame update
    void Start()
    {
        _brushColor = new Dictionary <ETypeBrush, Color>();
        _brushColor[ETypeBrush.passable]   = Color.white;
        _brushColor[ETypeBrush.impassable] = Color.gray;
        _brushColor[ETypeBrush.start]      = Color.green;
        _brushColor[ETypeBrush.finish]     = Color.red;

        CurrentBrush = ETypeBrush.impassable;
    }
コード例 #2
0
ファイル: Brush.cs プロジェクト: Sybmarina3000/AStar
 public void ChangeBrush(int newBrush)
 {
     CurrentBrush = (ETypeBrush)newBrush;
 }
コード例 #3
0
ファイル: Brush.cs プロジェクト: Sybmarina3000/AStar
 public void ChangeBrush(ETypeBrush newBrush)
 {
     CurrentBrush = newBrush;
 }