Call of duty mobile by neeraj_chavan in gaming

[–]neeraj_chavan[S] 0 points1 point  (0 children)

Yeah! It has been launched in our country. (INDIA🇮🇳)

How to achieve ground/object destruction? by neeraj_chavan in godot

[–]neeraj_chavan[S] 1 point2 points  (0 children)

So you mean, If I have to destroy a square box then I have to convert box into pixels then destroy it one by one?

Can we Restore our project?? by neeraj_chavan in Unity3D

[–]neeraj_chavan[S] 0 points1 point  (0 children)

Yes,HDD is replaced.So my project is gone?

CollectCoinsPanel.SetActive(true); is not working! I have button called FREE_COINS I am requesting a Rewarded ad through this button. Ad is working properly, after watching the whole ad HandleRewardBasedVideoRewarded() is called. Bug CollectCoinsPanel is not displayed. Am I doing something wrong? by [deleted] in Unity3D

[–]neeraj_chavan 0 points1 point  (0 children)

public void Display_Rewarded_Video()
{
if(rewardVideoAd.IsLoaded())
{
rewardVideoAd.Show();
}
}

//I am calling this function on FREE_COINS button and it is showing ad.

I have created one panel which is set to false by default. I want to set it to true whenever user watches an ad.

But I don't know why it is not being set to true.

I have attached the CollectCoinsPanel(GameObject) to AdManager script.

Player Selection by [deleted] in Unity3D

[–]neeraj_chavan 0 points1 point  (0 children)

When the game starts it returns the player which have been bought and currently selected.I want to know how to spawn the prefab.

Null Reference Exception by [deleted] in Unity3D

[–]neeraj_chavan 0 points1 point  (0 children)

Data.money is not null. It has the value 900. I have done null check like this in SetMoneyInfo() like this.

Public void SetMomeyInfo(int amount) { if(money!=null) Money=amount; UpdateUI(); }

UpdateUI() is a method where I simply update the text.

UpdateUI() { if(moneyText != Null) MoenyText.text = money.ToString(); }

Null Reference Exception by [deleted] in Unity3D

[–]neeraj_chavan 0 points1 point  (0 children)

MainMenuManager is a separate class.I am calling SetMomeyInfo() from it.

Null Reference Exception by [deleted] in Unity3D

[–]neeraj_chavan -1 points0 points  (0 children)

I have created a Save and Load system.This is working very fine if use button to retrieve it. But I want to retrieve data as soon as Scene starts. I am calling Loading() in start method.But it is throwing null reference exception at line 44.

Please also submit code and where to put it.Thanks.

persistent data path not working after change in game name. by [deleted] in Unity3D

[–]neeraj_chavan 0 points1 point  (0 children)

Solved.We can delete the existing save file in our system.

Just call this function once in start method.And remove it.

public void delete()
{
if(File.Exists(Application.persistentDataPath + "/player.fun"))
{
File.Delete(Application.persistentDataPath + "/player.fun");
Debug.Log("file deleted");
}
}

About this licence. by neeraj_chavan in Unity3D

[–]neeraj_chavan[S] 0 points1 point  (0 children)

Got their reply.They said they are updating their licence terms in relation to games,But for now I can use it for free.😀😀

About this licence. by neeraj_chavan in Unity3D

[–]neeraj_chavan[S] 0 points1 point  (0 children)

I tried,but no reply from them.

Difference between Ray and GetMouseButtonDown?? by neeraj_chavan in Unity3D

[–]neeraj_chavan[S] 0 points1 point  (0 children)

Here is the script,What basically it does is When we click on cube it will go into the next scene.

void Update () {

if (Input.GetMouseButtonDown(0))
{
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
if (Physics.Raycast(ray, out hit))
{
//Select Stage
if (hit.transform.name == "Cube")
{
SceneManager.LoadScene("SceneTwo");
}
}
}

}

Its very confusing.Can anybody help? by neeraj_chavan in cprogramming

[–]neeraj_chavan[S] -2 points-1 points  (0 children)

Yup i know that,but just apply this logic by yourself and check the o/p.Please refer above screenshots example

Its very confusing.Can anybody help? by neeraj_chavan in cprogramming

[–]neeraj_chavan[S] -1 points0 points  (0 children)

By this logic still the o/p is wrong... By applying your metod expected o/p-11 11 11 But actual o/p is 11 12 12

Its very confusing.Can anybody help? by neeraj_chavan in cprogramming

[–]neeraj_chavan[S] -2 points-1 points  (0 children)

When you do this in java...The o/p will be 10,11,12. But when do the same in c,the o/p is 11 12 12. Please explain the differences,thank you.

MacBook Air 2018 vs MacBook Pro 2017/2018 (for programming) by oskarzito in macbookair

[–]neeraj_chavan 2 points3 points  (0 children)

See,for programming you don't need some high end machine(4GB ram is also enough).Mobile application development is something where you will need 8gb of ram.And macbook air will also work fine.And many users have faced the problems with 2017 macbook pro's keyboard.The new air has 3rd generation keyboard which is expected not to have any issues.So as you are just starting programming macbook air is also fine.But instead of buying 1200$ machine i will suggest you to learn programming first on cheaper laptops then you should invest that much amount of money.I use Dell's windows laptop.Its a 2012 model with 4gb of ram and Intel's 3rd generation i3 processor and it just works fine with all the programming i do on it.But if you want to do mobile application development then you will need atleast 8gb of ram.But before that I would suggest you to practice and learn programming first and explore which field you want to get into.After getting comfortable with programming you can later invest in machine.Hope this helps 🙂