void Awake()
    {
        walkerComp   = GetComponent <BezierWalker>();
        headTrans    = (GetComponentInChildren(typeof(HeadTransform), true) as HeadTransform).transform;
        curveDisplay = GetComponentInChildren(typeof(CurveDisplay), true) as CurveDisplay;
        frontDisplay = GetComponentInChildren(typeof(FrontDisplay), true) as FrontDisplay;
        animator     = GetComponentInChildren(typeof(Animator), true) as Animator;

        if (isMonitor)
        {
            //regardless to whoever
            cameraTrans.gameObject.SetActive(true);
            cameraTrans.parent   = cameraParent;
            cameraTrans.position = cameraParent.position;
            cameraTrans.rotation = cameraParent.rotation;
            curveDisplay.gameObject.SetActive(true);
            frontDisplay.gameObject.SetActive(true);
        }
        else
        {
            if (id == StaticData.playerId)
            {
                cameraTrans.parent        = cameraParent;
                cameraTrans.localPosition = Vector3.zero;
                cameraTrans.localRotation = Quaternion.identity;
                curveDisplay.gameObject.SetActive(true);
                frontDisplay.gameObject.SetActive(true);
            }
            else
            {
                curveDisplay.gameObject.SetActive(false);
                frontDisplay.gameObject.SetActive(false);
            }
        }
    }
        public TableLegendContainerFactory(
			CurveDisplay curveDisplay,
			ITable table)
        {
            _curveDisplay = curveDisplay;
            _table = table;

            _builder = new ContainerBuilder();
            RegisterComponents();
        }
 public CurveDisplayAttribute(
     int minX,
     int minY,
     int maxX,
     int maxY,
     float r,
     float g,
     float b
     )
 {
     Rect    = new Rect(minX, minY, maxX, maxY);
     Color   = new Color(r, g, b);
     Display = CurveDisplay.RectAndColor;
 }
 /// <summary>
 /// Initializes a new instance of <see cref="TileLegend"/>.
 /// </summary>
 /// <param name="curveDisplay">The <see cref="CurveDisplay"/> instance which is associated with this <see cref="TileLegend"/>.</param>
 public TileLegend(CurveDisplay curveDisplay)
 {
     _viewModel = new TileLegendViewModel(curveDisplay, curveDisplay.TimeDoublePlottingSystem.TimeAxis);
     InitializeComponent();
 }
 public CurveDisplayAttribute(float r, float g, float b)
 {
     Color   = new Color(r, g, b);
     Display = CurveDisplay.ColorOnly;
 }
 public CurveDisplayAttribute(int minX, int minY, int maxX, int maxY)
 {
     Color   = new Color(0.4f, 1, 0);
     Rect    = new Rect(minX, minY, maxX, maxY);
     Display = CurveDisplay.RectAndColor;
 }