Пример #1
0
 public void Awake()
 {
     ResetAllStates();
     myTransform      = transform;
     playerController = GetComponent <TwoDTools.PlayerController2D>();
     spriteRenderer   = GetComponent <SpriteRenderer>();
 }
 public void Start()
 {
     playerController = GetComponent <TwoDTools.PlayerController2D>();
     input            = playerController.GetInput();
 }
Пример #3
0
        // Used for unit testing
#if UNITY_EDITOR
        public void SetPlayerController(TwoDTools.PlayerController2D playerController)
        {
            this.playerController = playerController;
        }