Пример #1
0
 public void SetUp()
 {
     playerGameObject =
         Object.Instantiate(Resources.Load("Player"), Vector3.zero, Quaternion.identity) as GameObject;
     player     = playerGameObject.GetComponent <Player>();
     unityInput = Substitute.For <IUnityInput>();
 }
Пример #2
0
    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();
    }
Пример #3
0
 //for testing purposes
 public void Contruct(IUnityInput unityInput)
 {
     this.unityInput = unityInput;
 }
Пример #4
0
 public MouseInputManager(IUnityInput InputManager, ISelectionManager SelectionManager, IHexDatabase HexDatabase)
 {
     this.InputManager     = InputManager;
     this.SelectionManager = SelectionManager;
     this.HexDatabase      = HexDatabase;
 }