Beispiel #1
0
    protected void PerformAction(IAvatar avatar)
    {
        DebugUtilities.Assert(actorScenePrefab != null, "You must have a valid actorScene for the action");
        var instantiatedScene = ActorSceneUtility.CreateSceneWithAvatarAndInteractable(actorScenePrefab.gameObject, avatar, gameObject);

        instantiatedScene.PlayScene(avatar.playerNotifications);
    }
    void SwordDone()
    {
        Debug.Log("Sword reported as done");
        var scene = ActorSceneUtility.CreateSceneWithAvatarAndInteractable(swordDoneScenes[finishedSwordCount].gameObject, characterAvatar, sword.gameObject);

        scene.endOfSceneNotification += OnSwordDoneSceneEnded;
//		swordNotifications.PauseTimer();
        if (sword != null)
        {
            sword.IsPaused(true);
        }
        scene.PlayScene(characterAvatar.playerNotifications);
    }