Newer
Older
Plot_On_Reality / Assets / Originals / Scripts / Cross / NonCrossOptionMenu.cs
t-nagao on 1 Feb 2023 684 bytes first
using System.Collections.Generic;
using UnityEngine;

public class NonCrossOptionMenu : BackButton
{
    [SerializeField] GameObject detailExplain;

    GraphData crossGraphData;
    List<GraphData> originGraphDatas;

    public void Initialize(GraphData crossData, GraphData data1, GraphData data2)
    {
        originGraphDatas = new List<GraphData>
        {
            data1,
            data2
        };

        this.crossGraphData = crossData;
    }

    public void pressedDetailButton()
    {
        detailExplain.GetComponent<DetailExplain>().Initialize(crossGraphData,originGraphDatas);
        detailExplain.SetActive(true);
        base.anotherButtonAction();
    }
}