Пример #1
0
    public void ThrowSnipperPorjectile(string playerWhoSpawnedUs, uint netId)
    {
        TravelingSpell spell = NetworkManager.Instance.InstantiateThrowObj(1, transform.position, GameObject.FindGameObjectWithTag("PlayerCamera").transform.rotation) as TravelingSpell;

        spell.playerWhoSpawnedUs = playerWhoSpawnedUs;
        spell._netId             = netId;
    }
Пример #2
0
    public void ThrowSpell(string playerWhoSpawnedUs, uint netId)
    {
        TravelingSpell spell = NetworkManager.Instance.InstantiateThrowObj(0, transform.position, GameObject.FindGameObjectWithTag("PlayerCamera").transform.rotation) as TravelingSpell;

        Debug.Log("player Who Spoawned us::SpellManager: " + playerWhoSpawnedUs);
        spell.playerWhoSpawnedUs = playerWhoSpawnedUs;
        spell._netId             = netId;
    }