// Start is called before the first frame update void Start() { state = State.Idle; rb2d = GetComponent <Rigidbody2D>(); anim = GetComponent <Animator>(); robohealth = GetComponentInChildren <RobotHealth>(); }
void Start() { IskeiroHealth = Iskeiro.GetComponent <RobotHealth>(); DarcHealth = darc.GetComponent <RobotHealth>(); DarcBattery = darc.GetComponent <RobotBattery>(); IskeiroBattery = Iskeiro.GetComponent <RobotBattery>(); WinnerName = WinText.GetComponent <Text>(); GameTimer = Canvas.GetComponent <Timer>(); audioExcellent = GetComponent <AudioSource>(); audioImpressive = GetComponent <AudioSource>(); audioWellDone = GetComponent <AudioSource>(); robotControllerIskeiro = Iskeiro.GetComponent <RobotController>(); robotControllerDarc = darc.GetComponent <RobotController>(); resetting = false; }