예제 #1
0
    void Start()
    {
        Button button = GetComponent <Button>();

        button.onClick.AddListener(OnClick);
        ic = GameObject.FindGameObjectWithTag("Controllers").GetComponent <SceneIC>();
    }
예제 #2
0
    //public float fadeTime;

    //float alpha;

    //bool starting;

    protected override void Awake()
    {
        base.Awake();
        ic = GetComponent <SceneIC>();
    }