-
Notifications
You must be signed in to change notification settings - Fork 0
/
Layer.cs
executable file
·32 lines (27 loc) · 921 Bytes
/
Layer.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Layer.cs
// (c) 2013 Brett Ernst, Jameson Ernst, Robert Marsters, Gabriel Isenberg https://github.com/gisenberg/tabletop.io.gui
// Licensed under the terms of the MIT license.
using UnityEngine;
namespace Tabletop.io.Gui {
public class Layer {
Camera _cam;
public string Name { get; private set; }
public int Index { get; private set; }
public GuiManager Manager { get; private set; }
public Camera Camera
{
get {
return this.Name == "main" ? Camera.main : _cam;
}
internal set {
_cam = value;
}
}
internal Layer (GuiManager manager, string name, int index, Camera camera) {
this.Manager = manager;
this.Name = name;
this.Index = index;
_cam = camera;
}
}
}