コード例 #1
0
    // Use this for initialization
    void Start()
    {
        if (targetBook == null)
        {
            targetBook = GetComponent <AnimatedBookController>();
        }

        if (targetBook != null)
        {
            targetBook._onBookOpen  += onBookOpen;
            targetBook._onBookClose += onBookClose;
        }
        else
        {
            Debug.LogError("The reference to the AnimatedBookController has not been set");
        }
    }
コード例 #2
0
 // Use this for initialization
 void Start()
 {
     animatedBookController = FindObjectOfType <AnimatedBookController> ();
 }