Ejemplo n.º 1
0
 public void Init()
 {
     TestUtil.FlushRedisStore();
     TestUtil.DeleteDataInDatabase();
     TestUtil.InsertDataDatabase();
     AutoMapperConfiguration.Configure();
     _context       = new MicrobrewitContext();
     _repository    = new HopRepository();
     _elasticsearch = new HopElasticsearch();
     _service       = new HopService(_repository, _elasticsearch);
     _controller    = new HopController(_service);
 }
Ejemplo n.º 2
0
    void Awake()
    {
        m_Transform      = transform;
        m_HopController  = GetComponent <HopController>();
        m_EyesController = GetComponent <EyesController>();

        GlobalData.GhostModeEnabled  += OnGhostModeEnabled;
        GlobalData.GhostModeDisabled += OnGhostModeDisabled;

        m_Ghosts = new Ghost[m_MaxGhosts];

        m_ActivationDistanceSq = m_ActivationDistance * m_ActivationDistance;
    }
Ejemplo n.º 3
0
    public void Setup(List <SquashController> squashControllers,
                      HopController hopController, EyesController eyesController)
    {
        for (var i = 0; i < m_SquashNodes.Count; ++i)
        {
            m_SquashNodes[i].localScale = squashControllers[i].m_SquashNode.localScale;
        }

        m_HopNode.localPosition = hopController.m_HopNode.localPosition;

        m_EyesRoot.localPosition        = eyesController.m_EyesRoot.localPosition;
        m_LeftBlinkRoot.localScale      = eyesController.m_LeftBlinkRoot.localScale;
        m_RightBlinkRoot.localScale     = eyesController.m_RightBlinkRoot.localScale;
        m_LeftRotateRoot.localPosition  = eyesController.m_LeftRotateRoot.localPosition;
        m_RightRotateRoot.localPosition = eyesController.m_RightRotateRoot.localPosition;
    }