Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     createPoint = new Vector2 (100, 760);
     StartSpawn ();
     yamauchi = GameObject.Find("Yamauchi");
     plc = yamauchi.GetComponent<PlayerController> ();
     sphere = GameObject.Find("Sphere");
     sakie = sphere.GetComponent<Sakie> ();
 }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     createPoint = new Vector2(100, 760);
     StartSpawn();
     yamauchi = GameObject.Find("Yamauchi");
     plc      = yamauchi.GetComponent <PlayerController> ();
     sphere   = GameObject.Find("Sphere");
     sakie    = sphere.GetComponent <Sakie> ();
 }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     rigidbody2D = GetComponent <Rigidbody2D> ();
     yamauchi    = GameObject.Find("Yamauchi");
     rigidbody2D.AddForce(Vector2.up * imp, ForceMode2D.Impulse);
     scoreGUI    = GameObject.Find("ScoreGUI");
     heartSound  = GameObject.Find("HeartSound");
     sound01     = heartSound.GetComponent <AudioSource> ();
     sphere      = GameObject.Find("Sphere");
     sakie       = sphere.GetComponent <Sakie> ();
     heart       = GameObject.Find("HeartManager");
     createHeart = heart.GetComponent <CreateHeart> ();
 }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     rigidbody2D = GetComponent<Rigidbody2D> ();
     yamauchi = GameObject.Find ("Yamauchi");
     rigidbody2D.AddForce(Vector2.up * imp, ForceMode2D.Impulse);
     scoreGUI = GameObject.Find ("ScoreGUI");
     heartSound = GameObject.Find ("HeartSound");
     sound01 = heartSound.GetComponent<AudioSource> ();
     sphere = GameObject.Find("Sphere");
     sakie = sphere.GetComponent<Sakie> ();
     heart = GameObject.Find("HeartManager");
     createHeart = heart.GetComponent<CreateHeart> ();
 }