Question: i need help in c# code for Unity 4 Answer the following aiven the following 2D game, which has middle called Squall black square in
4 Answer the following aiven the following 2D game, which has middle called Squall black square in the Answer the following assuming the game is built using Unity game Engine and everything has been set up correctly, a) Suppose we attached the next script to the small black square. Explain the game behavior/output after. b) Name a Unity Component that walls must have beside Transform to make the game work. c) Suppose the game did not work after that. Name two things that you will check or expect to be the problems using Systen. Collections; using Systen.Collections. Generic; using UnityEngine; public class Question : MonoBehaviour i private Ganeobject target; private float step =10f; yoid start() i target = GaneObject.Find("Square"); ) void Update ( ) i Vector2 f= new Vector2(step, of); target. GetComponent 20>0. velocity = , void OnColtisionEnter 20 (Collision 20 othe i step = step 1; H)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
