Exemplo n.º 1
0
    void OnEnable()
    {
        m_ball = (UBasketball)target;
        GameObject goBasket = GameObject.FindGameObjectWithTag("basketStand");

        if (goBasket == null)
        {
            return;
        }
        m_basket = goBasket.GetComponent <UBasket>();
        if (m_basket == null)
        {
            m_basket = goBasket.AddComponent <UBasket>();
        }
        m_basket.Build(new IM.Vector3(IM.Number.zero, IM.Number.zero, new IM.Number(12, 8)));

        m_ball.m_ballRadius = new IM.Number(0, 125);

        m_simulatingShootSolution = new ShootSolution(0);
        GameSystem.Instance.shootSolutionManager = new ShootSolutionManager();


        instance = this;
    }
Exemplo n.º 2
0
 void OnDisable()
 {
     instance = null;
 }