Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- public class TacticMove : MonoBehaviour {
- BaseCharacter character = new BaseCharacter();
- public int move;
- void SomeMethod() {
- move = character.Move;
- }
- }
- public class BaseCharacter {
- private int move;
- public int Move {
- get { return move; }
- set { move = value; }
- }
- }
- public class BaseRogue : BaseCharacter {
- void SomeMethod() {
- Move = 6;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement