public void SetUp() { playerGameObject = Object.Instantiate(Resources.Load("Player"), Vector3.zero, Quaternion.identity) as GameObject; player = playerGameObject.GetComponent <Player>(); unityInput = Substitute.For <IUnityInput>(); }
public Animator animator; //Maybe other solution than public // Use this for initialization void Start() { //Cache the attached components for better performance and less typing rigidBody = GetComponent <Rigidbody>(); myTransform = transform; animator = myTransform.Find("PlayerModel").GetComponent <Animator>(); unityInput = new UnityInput(); }
//for testing purposes public void Contruct(IUnityInput unityInput) { this.unityInput = unityInput; }
public MouseInputManager(IUnityInput InputManager, ISelectionManager SelectionManager, IHexDatabase HexDatabase) { this.InputManager = InputManager; this.SelectionManager = SelectionManager; this.HexDatabase = HexDatabase; }