// 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> (); }
// 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> (); }
// 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> (); }
// 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> (); }