Beispiel #1
0
        public void initialize(byte myId, Camera cam, BoardContainer board, onDeploy call)
        {
            this.myId = myId;
            _cam      = cam;
            _board    = board;
            _onDeploy = call;

            colors = new Dictionary <byte, Color>();
            colors.Add(0, Color.white);
            colors.Add(1, Color.red);
            colors.Add(2, Color.green);
            colors.Add(3, Color.blue);
            colors.Add(4, Color.gray);
            colors.Add(5, Color.cyan);
            colors.Add(6, Color.magenta);
            colors.Add(7, Color.yellow);
            colors.Add(8, Color.white);

            _mainP = GameObject.FindObjectOfType <MainProxy>();
        }
Beispiel #2
0
        public void initialize(byte myId, Camera cam, BoardContainer board, onDeploy call)
        {
            this.myId = myId;
            _cam = cam;
            _board = board;
            _onDeploy = call;

            colors = new Dictionary<byte, Color>();
            colors.Add(0, Color.white);
            colors.Add(1, Color.red);
            colors.Add(2, Color.green);
            colors.Add(3, Color.blue);
            colors.Add(4, Color.gray);
            colors.Add(5, Color.cyan);
            colors.Add(6, Color.magenta);
            colors.Add(7, Color.yellow);
            colors.Add(8, Color.white);

            _mainP = GameObject.FindObjectOfType<MainProxy>();
        }