예제 #1
0
    void Start()
    {
        c_wait = GameObject.Find("c_wait");
        script = c_wait.GetComponent <Move_How_to_Play>();

        img       = GetComponent <Image>();
        img.color = Color.clear;
    }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     c_wait             = GameObject.Find("c_wait");                //c_waitをオブジェクトの名前から取得して変数に格納する
     script             = c_wait.GetComponent <Move_How_to_Play>(); //c_waitの中にあるmoveを取得して変数に格納する
     sound01            = GetComponent <AudioSource>();
     MainSpriteRenderer = gameObject.GetComponent <SpriteRenderer>();
     debris_time        = 0;
     count = 0;
 }