当前位置: 首页>>代码示例>>C#>>正文


C# EventDelegate.Execute方法代码示例

本文整理汇总了C#中EventDelegate.Execute方法的典型用法代码示例。如果您正苦于以下问题:C# EventDelegate.Execute方法的具体用法?C# EventDelegate.Execute怎么用?C# EventDelegate.Execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在EventDelegate的用法示例。


在下文中一共展示了EventDelegate.Execute方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: EventBossOneOne

    public void EventBossOneOne()
    {
        GameObject[] bossList = GameObject.FindGameObjectsWithTag(Tags.boss);
        for (int i = 0; i < bossList.Length; i++)
        {
            bossList[i].GetComponent<BossController>().FoundPlayer();
        }
        UIBossBloodManager._instance.OnOpenButtonClick();

        EventDelegate unlockPlayer = new EventDelegate(this, "MakePlayerFree");


        EventDelegate closeTheRoad = new EventDelegate(this, "SetObjectActive");
        closeTheRoad.parameters[0] = new EventDelegate.Parameter(new GameObject[] { eventObject1, eventObject2 });
        closeTheRoad.parameters[1] = new EventDelegate.Parameter(true);
        closeTheRoad.parameters[2] = new EventDelegate.Parameter(1f);
        closeTheRoad.parameters[3] = new EventDelegate.Parameter(unlockPlayer);

        EventDelegate cameraLookAt = new EventDelegate(this, "CameraLookAt");
        cameraLookAt.parameters[0] = new EventDelegate.Parameter(PositionTarget[0].transform);
        cameraLookAt.parameters[1] = new EventDelegate.Parameter(1f);
        cameraLookAt.parameters[2] = new EventDelegate.Parameter(closeTheRoad);

        EventDelegate openTheParticleSystem = new EventDelegate(this, "SetParticleSystemActive");
        openTheParticleSystem.parameters[0] = new EventDelegate.Parameter(new GameObject[] { eventObject1, eventObject2 });
        openTheParticleSystem.parameters[1] = new EventDelegate.Parameter(true);
        openTheParticleSystem.parameters[2] = new EventDelegate.Parameter(0.5f);
        openTheParticleSystem.parameters[3] = new EventDelegate.Parameter(cameraLookAt);

        openTheParticleSystem.Execute();
    }
开发者ID:tsss-t,项目名称:SimpleStory,代码行数:31,代码来源:EventManager.cs

示例2: EventBossOneTwo

    public void EventBossOneTwo()
    {
        EventDelegate unlockPlayer = new EventDelegate(this, "MakePlayerFree");


        EventDelegate openTheRoad = new EventDelegate(this, "SetObjectActive");
        openTheRoad.parameters[0] = new EventDelegate.Parameter(new GameObject[] { eventObject1, eventObject2 });
        openTheRoad.parameters[1] = new EventDelegate.Parameter(false);
        openTheRoad.parameters[2] = new EventDelegate.Parameter(1f);
        openTheRoad.parameters[3] = new EventDelegate.Parameter(unlockPlayer);

        EventDelegate cameraLookAt = new EventDelegate(this, "CameraLookAt");
        cameraLookAt.parameters[0] = new EventDelegate.Parameter(PositionTarget[1].transform);
        cameraLookAt.parameters[1] = new EventDelegate.Parameter(1f);
        cameraLookAt.parameters[2] = new EventDelegate.Parameter(openTheRoad);

        EventDelegate closeTheParticleSystem = new EventDelegate(this, "SetParticleSystemActive");
        closeTheParticleSystem.parameters[0] = new EventDelegate.Parameter(new GameObject[] { eventObject1, eventObject2 });
        closeTheParticleSystem.parameters[1] = new EventDelegate.Parameter(false);
        closeTheParticleSystem.parameters[2] = new EventDelegate.Parameter(1f);
        closeTheParticleSystem.parameters[3] = new EventDelegate.Parameter(cameraLookAt);

        closeTheParticleSystem.Execute();
    }
开发者ID:tsss-t,项目名称:SimpleStory,代码行数:24,代码来源:EventManager.cs

示例3: EventShopTwoOne

    /// <summary>
    /// 合成台修復
    /// </summary>
    public void EventShopTwoOne()
    {
        EventDelegate unlockPlayer = new EventDelegate(this, "MakePlayerFree");

        EventDelegate talkEvent15 = new EventDelegate(this, "Talk");
        talkEvent15.parameters[0] = new EventDelegate.Parameter(15);
        talkEvent15.parameters[1] = new EventDelegate.Parameter(unlockPlayer);

        EventDelegate cameraLookAt = new EventDelegate(this, "CameraLookAt");
        cameraLookAt.parameters[0] = new EventDelegate.Parameter(PositionTarget[3].transform);
        cameraLookAt.parameters[1] = new EventDelegate.Parameter(2f);
        cameraLookAt.parameters[2] = new EventDelegate.Parameter(talkEvent15);

        EventDelegate talkEvent14 = new EventDelegate(this, "Talk");
        talkEvent14.parameters[0] = new EventDelegate.Parameter(14);
        talkEvent14.parameters[1] = new EventDelegate.Parameter(cameraLookAt);

        EventDelegate moveToShangRen = new EventDelegate(this, "MoveTo");
        moveToShangRen.parameters[0] = new EventDelegate.Parameter(player.transform);
        moveToShangRen.parameters[1] = new EventDelegate.Parameter(PositionTarget[2].position);
        moveToShangRen.parameters[2] = new EventDelegate.Parameter(0f);
        moveToShangRen.parameters[3] = new EventDelegate.Parameter(talkEvent14);

        moveToShangRen.Execute();

        GameController._instance.doneEvent(4);
    }
开发者ID:tsss-t,项目名称:SimpleStory,代码行数:30,代码来源:EventManager.cs

示例4: EventShopOneOne

    /// <summary>
    /// 商人救え出す
    /// </summary>
    public void EventShopOneOne()
    {
        EventDelegate unlockPlayer = new EventDelegate(this, "MakePlayerFree");

        EventDelegate talkEvent9 = new EventDelegate(this, "Talk");
        talkEvent9.parameters[0] = new EventDelegate.Parameter(9);
        talkEvent9.parameters[1] = new EventDelegate.Parameter(unlockPlayer);

        EventDelegate helpShopping = new EventDelegate(this, "EventHelpShopping");
        helpShopping.parameters[0] = new EventDelegate.Parameter(talkEvent9);

        EventDelegate talkEvent8 = new EventDelegate(this, "Talk");
        talkEvent8.parameters[0] = new EventDelegate.Parameter(8);
        talkEvent8.parameters[1] = new EventDelegate.Parameter(helpShopping);

        EventDelegate moveToShangRen = new EventDelegate(this, "MoveTo");
        moveToShangRen.parameters[0] = new EventDelegate.Parameter(player.transform);
        moveToShangRen.parameters[1] = new EventDelegate.Parameter(PositionTarget[1].position);
        moveToShangRen.parameters[2] = new EventDelegate.Parameter(0f);
        moveToShangRen.parameters[3] = new EventDelegate.Parameter(talkEvent8);

        EventDelegate talkEvent7 = new EventDelegate(this, "Talk");
        talkEvent7.parameters[0] = new EventDelegate.Parameter(7);
        talkEvent7.parameters[1] = new EventDelegate.Parameter(moveToShangRen);

        EventDelegate cameraLookAt = new EventDelegate(this, "CameraLookAt");
        cameraLookAt.parameters[0] = new EventDelegate.Parameter(PositionTarget[0].transform);
        cameraLookAt.parameters[1] = new EventDelegate.Parameter(2f);
        cameraLookAt.parameters[2] = new EventDelegate.Parameter(talkEvent7);

        cameraLookAt.Execute();
        GameController._instance.doneEvent(2);
    }
开发者ID:tsss-t,项目名称:SimpleStory,代码行数:36,代码来源:EventManager.cs

示例5: EventLastFloorTwoOne

    /// <summary>
    /// 崩れている場所、片付け
    /// </summary>
    public void EventLastFloorTwoOne()
    {
        EventDelegate unlockPlayer = new EventDelegate(this, "MakePlayerFree");

        EventDelegate talkEvent13 = new EventDelegate(this, "Talk");
        talkEvent13.parameters[0] = new EventDelegate.Parameter(13);
        talkEvent13.parameters[1] = new EventDelegate.Parameter(unlockPlayer);

        EventDelegate moveRocks = new EventDelegate(this, "EventMoveRocks");
        moveRocks.parameters[0] = new EventDelegate.Parameter(talkEvent13);

        EventDelegate talkEvent12 = new EventDelegate(this, "Talk");
        talkEvent12.parameters[0] = new EventDelegate.Parameter(12);
        talkEvent12.parameters[1] = new EventDelegate.Parameter(moveRocks);

        EventDelegate moveToRocks = new EventDelegate(this, "MoveTo");
        moveToRocks.parameters[0] = new EventDelegate.Parameter(player.transform);
        moveToRocks.parameters[1] = new EventDelegate.Parameter(PositionTarget[2].position);
        moveToRocks.parameters[2] = new EventDelegate.Parameter(0f);
        moveToRocks.parameters[3] = new EventDelegate.Parameter(talkEvent12);

        EventDelegate talkEvent11 = new EventDelegate(this, "Talk");
        talkEvent11.parameters[0] = new EventDelegate.Parameter(11);
        talkEvent11.parameters[1] = new EventDelegate.Parameter(moveToRocks);

        EventDelegate cameraLookAt = new EventDelegate(this, "CameraLookAt");
        cameraLookAt.parameters[0] = new EventDelegate.Parameter(PositionTarget[1].transform);
        cameraLookAt.parameters[1] = new EventDelegate.Parameter(2f);
        cameraLookAt.parameters[2] = new EventDelegate.Parameter(talkEvent11);

        cameraLookAt.Execute();
        GameController._instance.doneEvent(3);
    }
开发者ID:tsss-t,项目名称:SimpleStory,代码行数:36,代码来源:EventManager.cs

示例6: webProcess

    IEnumerator webProcess(WWW www, EventDelegate eventd)
    {
        float timeSum = 0f;
        while(!www.isDone &&
              string.IsNullOrEmpty(www.error) &&
              timeSum < 10f) {
            timeSum += Time.deltaTime;
            yield return 0;
        }

        if(www.error == null && www.isDone)
        {
            Debug.Log(www.text);
        //			LobbyGiftCommander.mGift = Newtonsoft.Json.JsonConvert.DeserializeObject<LobbyGiftCommander.GiftListResponse>(www.text);
        }

        eventd.Execute();
    }
开发者ID:streetlab,项目名称:Liveball_baseball,代码行数:18,代码来源:NetMgr.cs

示例7: ShowBingoAni

	IEnumerator ShowBingoAni(string[] items, EventDelegate eventDelegate){
		for(int i = 0; i < items.Length; i++){
			transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("Items").FindChild(items[i])
				.GetComponent<ItemBingo>().Bingo();
			yield return new WaitForSeconds(0.2f);
		}
		transform.FindChild("Body").FindChild("Scroll View").FindChild("Board").FindChild("Result")
			.GetComponent<BingoResult>().Bingo();
		eventDelegate.Execute();
	}
开发者ID:streetlab,项目名称:Liveball_baseball,代码行数:10,代码来源:LiveBingoAnimation.cs


注:本文中的EventDelegate.Execute方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。