Hello
i have 2 questions regarding fps or how fast/slow the code is.
1-Does these codes slow down my game (what if i used them 100times or 1000times per click on a button)
//First Code:
GameObject NewCreatedItem = (GameObject)Instantiate(itemPrefab);
//Second Code:
SomeClass accItsScript = NewCreatedItem.GetComponent<SomeClass>();
2-How can i know if this code is slow or fast?