100coding
4/5/2017 - 6:51 AM

931BA7AB-945D-427E-B1B6-2A58DD87647B

931BA7AB-945D-427E-B1B6-2A58DD87647B

using UnityEngine;
using Zenject;

public class GameRunner : ITickable
{
    private Ship ship;

    [Inject]
    public void Construct(Ship ship_instance)
    {
        this.ship = ship_instance;
    }

    public void Tick()
    {
        if (!Input.GetKeyDown(KeyCode.Space)) return;

        this.ship.Take_damage(10);
    }
}