private void Awake() { if (this.m_awake) { return; } this.m_awake = true; IUseCamera useCamera = (IUseCamera)base.GetComponent("IUseCamera"); if (useCamera != null) { this.renderCamera = useCamera.RenderCamera; } if (this.renderCamera == null) { this.renderCamera = Camera.main; } if (this.relativeTo == null) { this.relativeTo = new EZScreenPlacement.RelativeTo(this); } else if (this.relativeTo.Script != this) { EZScreenPlacement.RelativeTo relativeTo = new EZScreenPlacement.RelativeTo(this, this.relativeTo); this.relativeTo = relativeTo; } }
public void Copy(EZScreenPlacement.RelativeTo rt) { if (rt == null) { return; } this.horizontal = rt.horizontal; this.vertical = rt.vertical; }
public EZScreenPlacementMirror() { relativeTo = new EZScreenPlacement.RelativeTo(null); }
public bool Equals(EZScreenPlacement.RelativeTo rt) { return(rt != null && this.horizontal == rt.horizontal && this.vertical == rt.vertical); }
public RelativeTo(EZScreenPlacement sp, EZScreenPlacement.RelativeTo rt) { this.script = sp; this.Copy(rt); }