Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(3 edits)

public scoring scoreScript; // in enemy script, then drag object with score script to varible field in editor

And

scoreScript.scoreValue += 100; // before Destroy() in enemy script