// Use this for initialization void Start() { //pageOrg = gameObject.transform.parent.GetComponent<PageOrganizer>(); worldCursor = GameObject.Find("Cursor101").GetComponent <WorldCursor>(); // Noteboard events contextGrid = canvasContextContent.GetComponent <HorizontalLayoutGroup>(); canvasContextContent.SetActive(false); // Set the not-init state boardStatus = BoardStatus.NOT_INIT; BoardBorder.SetActive(false); PanelBackground.SetActive(false); CanvasMenu.SetActive(false); // Set board-tag info boardHintText = CanvasBoardInfo.GetComponentInChildren <Text>(); boardImgMove = GameObject.Find("Image-Move"); boardImgSave = GameObject.Find("Image-Save"); boardTagBorder = GameObject.Find("Panel-TagBorder"); boardCollider = panelBoardObj.GetComponent <BoxCollider>(); resizeBtnObj = GameObject.Find("BtnResize"); // DEBUG MODE boardHintText.text = ""; boardImgMove.SetActive(false); boardImgSave.SetActive(false); boardTagBorder.SetActive(false); panelBoardObj.SetActive(false); }
protected override void OnInitialize() { _engine.SetupWindowForWorld(); _userInterface.Cursor = Cursor = new WorldCursor(this); Client.Initialize(); Player.PlayerState.Journaling.AddEntry("Welcome to Ultima Online!", 9, 0x3B4, string.Empty, false); }
// Start is called before the first frame update public void Start() { if (Cursor == null) { Cursor = GetComponent <WorldCursor>(); } if (directionalLight == null) { directionalLight = FindObjectOfType <Light>().gameObject; } CommunicationEvents.PushoutFactEvent.AddListener(HighlightFact); CommunicationEvents.PushoutFactFailEvent.AddListener(StartPushoutFactFailHighlighting); CommunicationEvents.AnimateExistingFactEvent.AddListener(HighlightWithFireworks); speedSlowDown = timerDurationEnd * 10; lightColor = directionalLight.GetComponent <Light>().color; slowDownSwitch = new bool[slowDownCount]; Array.Clear(slowDownSwitch, 0, slowDownSwitch.Length); this.timerActive = false; this.timer = 0; }
// Use this for initialization void Awake() { cur = this; cursorRenderer = new Renderer[cursors.Length]; for (int i = 0; i < cursors.Length; i++) { cursorRenderer[i] = cursors[i].GetComponent<Renderer>(); } }
// Start is called before the first frame update void Start() { if (cursor == null) { cursor = GameObject.FindObjectOfType <WorldCursor>(); } ScrollFactHintEvent.AddListener(animateHint); NewAssignmentEvent.AddListener(newAssignmentTrigger); }
protected void Awake() { if (FactManager == null) { FactManager = GameObject.FindObjectOfType <FactManager>(); } if (Cursor == null) { Cursor = GameObject.FindObjectOfType <WorldCursor>(); } CommunicationEvents.TriggerEvent.AddListener(OnHit); }
/// <summary> /// Initialization. Creates the world cursor, gets the beam controller, and other things associated /// with input. /// </summary> void Start() { // Create world cursor instance if (WorldCursorPrefab != null) { worldCursor = Instantiate <WorldCursor>(WorldCursorPrefab); } List <InputSourceBase> inputSources = InputShellMap.Instance.inputSwitchLogic.TargetingSourceBases; for (int i = 0; i < inputSources.Count; i++) { ITargetingInputSource targetSource = inputSources[i] as ITargetingInputSource; if (targetSource != null) { targetSource.OnSelectChanged += DoTargetSourceSelectChanged; targetSource.OnMenuChanged += OnTargetSourceMenuChanged; } } }
protected override void OnInitialize() { m_UserInterface.Cursor = Cursor = new WorldCursor(this); Client.Initialize(); }
protected override void OnInitialize() { m_Engine.SetupWindowForWorld(); m_UserInterface.Cursor = Cursor = new WorldCursor(this); Client.Initialize(); }
void Awake() { instance = this; Cursor = transform; }
void Start() { meshRenderer = this.gameObject.GetComponentInChildren <MeshRenderer>(); Instance = this; }