OnClick events in Unity

  • Click on the + icon. None (Object) is requiring a gameobject
  • For our project, drag and drop the Shop_Keeper gameobject. It contains the Shop class with the SelectedItem(int) method.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

FlutterForce — #Week 77

Authenticate Google API’s

Doing Web Bot Using WEBBOT Library At Python

Things that PMs Do

PHP Design Patterns — Adapter

How to resize the static partition in Linux without losing your data?

How to leverage CI/CD performance testing pipeline using Gatling Docker Gitlab and Kubernetes

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Hernando Nieto Jaramillo

Hernando Nieto Jaramillo

Unity developer

More from Medium

Simple Player Movement in Unity

Wall Jumping

Rewarded video ads | Unity

Realtime, Mixed and Baked Light Modes — For Static & Dynamic Game Objects in Unity