public Surfing(float _duration, int _owner, int _id, int _key) { duration = _duration; owner = _owner; id = _id; player = Server.clients[_owner].player as Charmandolphin; player.surfing = true; key = _key; priority = 1; name = "surfing"; }
public Wave(int _id, Vector3 _spawnPosition, Quaternion _rotation, Vector3 _startDirection, int _owner) { id = _id; position = _spawnPosition; rotation = _rotation; startDirection = _startDirection; spawnPosition = _spawnPosition; owner = _owner; damage = 20; type = Type.water; speed = 40f; surfing = false; hasSurfed = false; reUseAble = true; groundMask = LayerMask.GetMask("Ground"); player = Server.clients[_owner].player as Charmandolphin; }