Coding

How to save ScriptableObject data

I will show you a a simple trick, you can convert your SO object as playerpref.

Object Oriented C# - (Polymorphism, Interface & Abstract Class

An Interface is a contract: The person writing the interface says, “hey, I accept things looking that way”, and the person using the interface says “OK, the class I write looks that way”.

An interface is an empty shell. There are only the signatures of the methods, which implies that the methods do not have a body. The interface can’t do anything. It’s just a pattern.

Abstract classes look a lot like interfaces, but they have something more, You can define a behavior for them. It’s more about a person saying, “these classes should look like that, and they have that in common, so fill in the blanks!”.

Object Oriented C# - Class, Inheritance, Composition

Having said all that, it doesn’t mean inheritance should be avoided at all times. In fact, it’s great to use inheritance when dealing with very stable classes on top of small hierarchies. As the hierarchy grows (or variations of classes increase), the hierarchy, however, becomes fragile. And that’s where composition can give you a better design.

Inheritable Singleton Pattern

সিঙ্গেলেটন একটা পরিচিত এবং জনপ্রিয় ডিজাইন প্যাটার্ন। অনেক সময় মাল্টিপল স্ক্রিপ্ট সিঙ্গেলেটন করতে হয়। একই জিনিস বার লেখা ঝামেলা সেজন্য inheritable singleton script ব্যাবহার করা যেতে পারে।

আমার Unity3D সেটআপ

ইউনিটি সেটআপ দেয়ার পর আমি প্রথম যে কাজ টা করি …

Unity Tips - 01

Simple and easy to use Unity tips that will help to write code more smoothly.

Intermediate C# - Generic Class

Generic class same as typical class in C# except Generic type. So what the f**k is generic type ? Generic type means it is not