Fixing Google Play Games plugin and Unity integration error - Android

Sudeep Acharya
Recently i was having multiple issues with google play games plugin integration in Unity. It was not working at all. After spending the couple of hours in it, i was able to fix the issue. This is a note to myself as well for others who are having trouble with the integration. I was using Admob plugin along with Google Play Games plugin. In the process of fixing the error i got different kinds of error.

Starting Animation from random time frame Unity

Sudeep Acharya
Code snippet to start the animation at different time. Useful when there are many same animation running on screen and you want to make them random. Animator anim = GetComponent<Animator> (); AnimatorStateInfo state = anim.GetCurrentAnimatorStateInfo (0); anim.Play (state.fullPathHash, -1, Random.Range(0f,1f)); You can add this code in Start or Awake function and add to the GameObject with the Animator component.

C# code to shuffle Array

Sudeep Acharya
private T[] ShuffleArray<T>(T[] array) { System.Random r = new System.Random (); for(int i = array.Length; i > 0; i--) { int j = r.Next (i); T k = array [j]; array [j] = array [i - 1]; array [i - 1] = k; } return array; } Example: Int Array int[] intArray = new int[] {1,2,3,4}; intArray = ShuffleArray(intArray); Float Array float[] floatArray = new float[] {1.0f,2.0f,3.0f,4.0f}; floatArray = ShuffleArray(floatArray);

How to find the game art for your Game Project

Sudeep Acharya
I am currently working on a game development, i do programming and in the game if i require graphics then i hire designer. I was curious about how other indie developers like me manage the game assets. I asked in a Facebook group about this topic. Hopefully i got reply from Dozens of people. In this post i will share how they manage the game assets being a Game Programmer.

Observer in Local Election Nepal 2074

Sudeep Acharya
I got a chance to Volunteer as a Observer in local election which was held in 31 Baisakh 2074 (14th of May 2017) from Forum for protection of Human Rights (FOPHUR/ मानब अधिकार संरक्षक मंच under Collective Campaign For Peace (COCAP). I almost went for observation in 15 different Election Center in Pokhara Lekhnath Metropolitan, Kaski. The overall Election was peaceful in the places i observed. In some of the Election center i got the permission for taking photographs.

10 days of Vipassana Meditation at Dhamma Pokhara - Before you go

Sudeep Acharya
So finally you are here because you’ve made a decision to take a Vipassana Meditation course at Dhamma Pokhara. That is great, you’ve made one of the best decision in your life. I have taken it from 1st of the April 2017 to 12th by A.T Khadga Karki and it was great, lifetime experience for me. In this post i will share more about Dhamma Pokhara so that it will be easier for you to plan before you go there.

Invisible Transparent Button in Unity3D

Sudeep Acharya
Today i was working on a project where i required to add the invisible button. I tried different methods like making button transparent, adding the image in the button. But then i came to know about this solution. I think that this is probably the best solution. Steps to add invisible button in Unity3D 1. Add the Button. (UI -> Button) 2. Edit the height and width of the button according to your fit.

Finally Graduated, I am an Engineer now

Sudeep Acharya
Hello all, I have completed the Bachelor of Engineering in Software Engineering from Pokhara University affiliated Gandaki College of Engineering and Science (GCES), Lamachaur, Pokhara. Recently on February 25th 2017, I had the convocation ceremony. The summary of this event can be found on my next blog. “Convocation Ceremony - Pokhara University”. I would like to thank everyone for helping me through out this journey. Especially my Father, Mother and my brother.

Convocation Ceremony - Pokhara University 2017

Sudeep Acharya
I am the graduated Student of Gandaki College of Engineering and Science of Batch 2012 and the faculty is Bachelor of Engineering in Software Engineering. Last year in October, 2016, the final Semester examination was completed. And then the result arrived after about 3 months. The 14th convocation ceremony of Pokhara University was held in 20th of February 2017. The convocation was a great memory and experience for me since there was no such day in the past when i did my SLC and Plus two(High school).

Hiking to Pumdikot View Tower

Sudeep Acharya
Today [23 March 2017 12:00-18:00], Me and my friend Srawan K.C with this dog went to hiking to Pumdikot View Tower. I will cover about our hiking in this post. Our route: Jarebar -> Damside -> World Peace Pagoda(Shanti Stupa) -> Pumdikot View Tower Yesterday night i sent a message to Srawan to go for a hiking. He then replied me today at 11AM with a plan to hike to Pumdikot.