void Start() { arm = GameObject.Find("Crane Hand 2.1").transform; hand = GameObject.Find("Hand").transform; cam = GameObject.Find("Main Camera"); ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>(); rb = Dog.GetComponent <Rigidbody2D>(); audio = GetComponent <AudioSource>(); }
void Start() { Dog = GameObject.Find("bubble"); rb = Dog.GetComponent <Rigidbody2D>(); //GetComponent<BoxCollider2D>().i ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>(); basePosition = transform.Find("CannonBase").transform; shootPosition = transform.Find("CannonBase/Cannon/CannonHead").transform; audio = GetComponent <AudioSource>(); }
void Start() { bubble = GameObject.Find("bubble"); rb = bubble.GetComponent <Rigidbody2D>(); ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>(); checkPoints = new GameObject[numberOfCheckPoints]; for (int i = 0; i < numberOfCheckPoints; i++) { checkPoints[i] = GameObject.Find("c" + i.ToString()); } progress = 0; timer = 0; audio = GetComponent <AudioSource>(); }
void Start() { ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>(); chooser = ip.gender; boy = GameObject.Find("BoyDog"); girl = GameObject.Find("GirlDog"); if (chooser == 1) { boy.SetActive(true); girl.SetActive(false); } if (chooser == 2) { boy.SetActive(false); girl.SetActive(true); } }
void Start() { ip = GameObject.Find("input_dashboard").GetComponent <inputProsessor>(); audio = GetComponent <AudioSource>(); }