void Awake() { input = GetComponent <IPlayerInput>(); physics = GetComponent <IPlayerPhysics>(); weaponArm = weaponArmGO.GetComponent <IPlayerArm>(); ropeHand = GetComponent <IRopeHand>(); }
public DLLFunctions( EngineFuncs engineFuncs, IGlobalVars globals, EntityDictionary entityDictionary, IServerInterface serverInterface, IEntities entities, IGameClients gameClients, INetworking networking, IPersistence persistence, IPlayerPhysics playerPhysics) { EngineFuncs = engineFuncs ?? throw new ArgumentNullException(nameof(engineFuncs)); Globals = globals ?? throw new ArgumentNullException(nameof(globals)); EntityDictionary = entityDictionary ?? throw new ArgumentNullException(nameof(entityDictionary)); ServerInterface = serverInterface ?? throw new ArgumentNullException(nameof(serverInterface)); Entities = entities ?? throw new ArgumentNullException(nameof(entities)); GameClients = gameClients ?? throw new ArgumentNullException(nameof(gameClients)); Networking = networking ?? throw new ArgumentNullException(nameof(networking)); Persistence = persistence ?? throw new ArgumentNullException(nameof(persistence)); PlayerPhysics = playerPhysics ?? throw new ArgumentNullException(nameof(playerPhysics)); }
public ClientDLLFunctions(IPlayerPhysics playerPhysics) { PlayerPhysics = playerPhysics ?? throw new ArgumentNullException(nameof(playerPhysics)); }