示例#1
0
    // 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);
    }
示例#2
0
 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);
 }
示例#3
0
    // 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;
    }
示例#4
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>();
     }
 }
示例#5
0
    // Start is called before the first frame update
    void Start()
    {
        if (cursor == null)
        {
            cursor = GameObject.FindObjectOfType <WorldCursor>();
        }

        ScrollFactHintEvent.AddListener(animateHint);
        NewAssignmentEvent.AddListener(newAssignmentTrigger);
    }
示例#6
0
    protected void Awake()
    {
        if (FactManager == null)
        {
            FactManager = GameObject.FindObjectOfType <FactManager>();
        }

        if (Cursor == null)
        {
            Cursor = GameObject.FindObjectOfType <WorldCursor>();
        }

        CommunicationEvents.TriggerEvent.AddListener(OnHit);
    }
示例#7
0
    /// <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();
 }
示例#9
0
 protected override void OnInitialize()
 {
     m_Engine.SetupWindowForWorld();
     m_UserInterface.Cursor = Cursor = new WorldCursor(this);
     Client.Initialize();
 }
示例#10
0
 void Awake()
 {
     instance = this;
     Cursor   = transform;
 }
 void Start()
 {
     meshRenderer = this.gameObject.GetComponentInChildren <MeshRenderer>();
     Instance     = this;
 }