示例#1
0
    public void OtherFire(float angle, byte num, GameObject lockObj)
    {
        if (BelongRole.IsLocal())
        {
            return;
        }

        transform.eulerAngles = new Vector3(0f, 0f, angle);
        OnFire(lockObj, 0);
    }
示例#2
0
    // Update is called once per frame
    void Update()
    {
        if (BelongRole.IsLocal())
        {
            m_shootTimer -= Time.deltaTime;

            if (!BelongRole.IsLockFish())
            {
                UpdateInput();
            }
            else
            {
                UpdateLocked();
            }
        }
        else
        {
            UpdateLockLine();
        }
    }