3 days ago

It's been almost 2 years since the last poll. So it's time for a new one!

What will be output to the console when the Start() method is executed?

Choose the answer below!

(Full code in the article)


SampleScript.cs

		
			
using UnityEngine;

namespace Assets.Samples.Sample4
{
    public class SampleScript : MonoBehaviour
    {
        private readonly Person _field = new Person();
        private Person _property => new Person();

        private void Start()
        {
            _field.Init("Mike", 25);
            _property.Init("Lucas", 35);

            _field.Introduce();
            _property.Introduce();
        }
    }
}
		
	

Person.cs

		
			
using UnityEngine;

namespace Assets.Samples.Sample4
{
    public class Person
    {
        public string Name { get; private set; } = "John";
        public int Age { get; private set; } = 18;

        public void Init(string name, int age)
        {
            Name = name;
            Age = age;
        }

        public void Introduce()
        {
            Debug.Log(quot;Hey, I'm {Name}, {Age} yo.");
        }
    }
}
		
	
  22 votes 11 days left



6 comments

Loading...

Next up

Gameplay screenshots

Tutorial is an important part of almost any game.

The game has task system, marker system and voice explanation (with subtitles) - all to make it as clear and comfortable for the player to play the game

2025

Help wanted!

Translator (English -> Hindi)

More information in the article

Help wanted!

Animator

More information in the article

The Cryptmaster Anniversary Update is here! 

@akuparagames saw that players loved the in-universe card minigame "Whatever." So for this update, they've put more effort to make it its own Roguelike game mode!

Try the FREE DEMO: https://bit.ly/CryptmasterSteam

Preparations for the release are in full swing!

A new page will be created for the new version of the game. I have already created a description for it

2025

The Button Effect – @Frycandle 's minimalist first-person puzzler inspired by The Witness, The Talos Principle and The Beginner's Guide, is coming to Steam! 

Play the demo and wishlist the game now: https://bit.ly/thebuttoneffect

Trophies reveal

Some trophies will be easy to unlock, and some will be quite a challenge

2025

Help wanted!

Translator (any language), Animator

More information in the article

Let there be colors - I made a custom dynamic fluid system + physically accurate spread with no extra cost.

After 3.5+ years, I changed the logo. I liked the old one quite well, but I decided to redesign it because of the upcoming change in my direction in game development.

What do I mean?

You'll find out soon.