Nadekai
Nadekai
CC#
Created by Nadekai on 11/2/2023 in #help
❔ How to access variable from another class?
I wanna access int level from ability.cs to main.cs, but I have no idea how to do that.
{

public class Ability
{
public int level;


public class passiveAbility : Ability
{
public void Dodge()
{
level = 2;
}
}

public class activeAbility : Ability
{

}

}
}
{

public class Ability
{
public int level;


public class passiveAbility : Ability
{
public void Dodge()
{
level = 2;
}
}

public class activeAbility : Ability
{

}

}
}
4 replies
CC#
Created by Nadekai on 10/23/2023 in #help
❔ How to display text below console.Readline
No description
34 replies