示例#1
0
        public override void StartTutorial(GameObject arrow, TutorialManager manager)
        {
            base.StartTutorial(arrow, manager);

            Building             building             = FindObjectOfType <Building>();
            AbstractBuildingTile abstractBuildingTile = building.GetComponentInParent <AbstractBuildingTile>();

            meshRenderer = abstractBuildingTile.GetComponent <Renderer>();

            Canvas buildingCanvas = building.GetComponentInChildren <Canvas>();

            oldMaterial = meshRenderer.sharedMaterial;

            prefabInstance = Instantiate(arrow, buildingCanvas.transform);

            prefabInstance.transform.localScale = new Vector3(scale, scale, scale);
            prefabInstance.transform.Translate(Vector3.up * offsetDistance, Space.Self);
            meshRenderer.sharedMaterial = material;

            OpenMarketEvent.ParameterlessListeners += OnMarketScreen;
        }