예제 #1
0
    // 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
 public void ChangeBrush(int newBrush)
 {
     CurrentBrush = (ETypeBrush)newBrush;
 }
예제 #3
0
 public void ChangeBrush(ETypeBrush newBrush)
 {
     CurrentBrush = newBrush;
 }