コード例 #1
0
    public void CreateConversation(NPC npcinfo)
    {
        conversation = GameObject.Instantiate(Resources.Load("Prefabs/Popups/Conversation") as GameObject);
        var conversationPosition = conversation.transform.position;

        var camPos = cameraController.GetCameraPosition();

        conversationPosition.x          = camPos.x - 3.0f;
        conversationPosition.y          = camPos.y + 11.0f;
        conversation.transform.position = conversationPosition;

        convoController.BuildConversationDisplay(conversation, npcinfo);

        cameraController.SetOrthographicSize(9.0f);
    }