예제 #1
0
    // Use this for initialization
    void Start()
    {
        fireScript = GetComponent <BulletFireScript>();
        controller = GetComponentInParent <CannonController>();

        swivelRangeDegrees = controller.SwivelRangeDegrees;
        aimingRangeDegrees = controller.AimingRangeDegrees;
    }
예제 #2
0
    /// <summary>
    /// Initialises the script
    /// </summary>
    void Start()
    {
        m_fireScript = GetComponent <BulletFireScript>();

        //TODO: figure out if cannons need to know about their cannon controller.
        m_controller         = GetComponentInParent <CannonController>();
        m_swivelRangeDegrees = m_controller.SwivelRangeDegrees;
    }
예제 #3
0
    /// <summary>
    /// Initialises the script
    /// </summary>
    void Start()
    {
        m_fireScript = GetComponent<BulletFireScript>();

        //TODO: figure out if cannons need to know about their cannon controller.
        m_controller = GetComponentInParent<CannonController>();
        m_swivelRangeDegrees = m_controller.SwivelRangeDegrees;
    }