public void SubScore(int point) { playerData.playerScore -= point; GameObject cross = Instantiate(prefabCross, new Vector3(0, 0, 0), quaternion.identity); shaker.TriggerShake(0.8f); Destroy(cross, 1); }
public void SubScore(int point) { playerData.playerScore -= point; GameObject cross = Instantiate(prefabCross, new Vector3(0, 0, 0), quaternion.identity); shaker.TriggerShake(0.8f); Destroy(cross, 1); }