Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        _gameLogo              = GameObject.Find("GameLogo").GetComponent <GameLogo>();
        _gameLogo.OnAnimEnded += OnAnimEnded;

        _input3D = new Input3D();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        _input3D = new Input3D();
        _input3D.NotifyTouchedObjects = true;
        var go = GameObject.Find("MovementTouch");

        _moveTouch = go.GetComponent <MovementTouch>();
        go         = GameObject.Find("FireTouch");
        _fireTouch = go.GetComponent <FireTouch>();
    }
Esempio n. 3
0
        public void Update(float deltaTime)
        {
            Input3D.Update();
            var touch = Input3D.Touches.FirstOrDefault();

            if (touch != null)
            {
                MoveTo(touch.Hit.point);
            }

            Hud.Score += (int)(100.0f * deltaTime);
        }