Example #1
0
 void Awake()
 {
     data          = GameSettings.Instance.GetAimPointData(type);
     shooter       = GetComponent <ShipShooterManager>();
     input         = GetComponent <PlayerControlInput>();
     currentAngles = new Vector3[aimPoints.Length];
 }
Example #2
0
    private void OnEnable()
    {
        if (m_Controls == null)
        {
            m_Controls = new PlayerControlInput();
            m_Controls.Gameplay.SetCallbacks(this);
        }

        EnableGameplayInput();
    }