Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. using UnityEngine;
  2.  
  3. public class TacticMove : MonoBehaviour {
  4.     BaseCharacter character = new BaseCharacter();
  5.     public int move;
  6.     void SomeMethod() {
  7.         move = character.Move;
  8.     }
  9. }
  10.  
  11. public class BaseCharacter {
  12.     private int move;
  13.     public int Move {
  14.         get { return move; }
  15.         set { move = value; }
  16.     }
  17. }
  18. public class BaseRogue : BaseCharacter {
  19.    void SomeMethod() {
  20.         Move = 6;
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement