Question by
Anass1997 · Feb 04, 2019 at 10:26 PM ·
spritechangespriterenderer
Changing Sprite won't work
Hi here's my problem: sprR = GetComponent(); / in start function/ if i want this to work : if(Input.GetMouseButtonDown(0)) sprR.sprite=jumpSpr; / jumpSpr is a public sprite that has my jump pic as a value./ whenever i click on the mouse button the sprite doesn't change at all. PS: My player has left - right walk animation on it, and by the way this work on another gameobject but not on my player :/
Comment