// Use this for initialization void Start() { _gameLogo = GameObject.Find("GameLogo").GetComponent <GameLogo>(); _gameLogo.OnAnimEnded += OnAnimEnded; _input3D = new Input3D(); }
// 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>(); }
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); }